VertexStyle

VertexStyle
is an option and property for Graph and related functions that specifies what style to use for vertices.

DetailsDetails

  • The following option settings can be used:
  • Automaticuse automatic setting for style
    styleuse style for all vertices
    {v1->style1,v2->style2,}use for vertex
  • Vertices with no explicit vertex style are taken to use the automatic style.
  • The wrapper Style[v,style] is equivalent to Property[v,VertexStyle->style] and can be used when creating graphs in functions such as Graph etc.
  • VertexStyle can apply to points, lines, and faces.
  • To specify multiple style directives use Directive[style1,style2,].
  • Style and other specifications are effectively applied in the order VertexStyle, Style and other wrappers, and VertexShapeFunction, with later specifications overriding earlier ones.

ExamplesExamplesopen allclose all

Basic Examples  (2)Basic Examples  (2)

Set the style for all vertices:

In[1]:=
Click for copyable input
Out[1]=

Specify the style for individual vertices:

In[1]:=
Click for copyable input
Out[1]=
Introduced in 2010
(8.0)