Wolfram Language & System 11.0 (2016)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.View current documentation (Version 11.2)


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


  • 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.

ExamplesExamplesopen allclose all

Basic Examples  (2)Basic Examples  (2)

Set the style for all vertices:

Click for copyable input

Specify the style for individual vertices:

Click for copyable input
Introduced in 2010