VertexStyle

VertexStyle

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

Details

  • The following option settings can be used:
  • Automaticuse automatic setting for style
    styleuse style for all vertices
    {v1->style1,v2->style2,}use stylei for vertex vi
  • Vertices with no explicit vertex style v->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.

Examples

open allclose all

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]=

Scope  (10)

See Also

Graph  VertexLabels  EdgeStyle  VertexRenderingFunction  VertexSize

Introduced in 2010
(8.0)