Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica >

VertexLabelStyle

VertexLabelStyle
is an option and property for Graph and related functions that specifies the style to use for vertex labels.
  • Typical forms of settings include:
Automaticuse automatic setting
styleuse style for all vertices
{v1->style1,v2->style2,...}use for vertex
  • Color directives such as Red, as well as text specifications such as Bold or Small, can be given.
  • Giving the option setting VertexLabelStyle->style is effectively equivalent to replacing the label-like elements of a formatting or related construct by Style.
Set the style for all vertex labels:
Specify the style for individual vertex labels:
Set the style for all vertex labels:
In[1]:=
Click for copyable input
Out[1]=
 
Specify the style for individual vertex labels:
In[1]:=
Click for copyable input
Out[1]=
VertexLabelStyle can be used for general graphs:
Matrix graphs:
Special graphs:
Random graphs:
New in 8
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF