This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

EdgeStyle

EdgeStyle
is an option and property for Graph and related functions that specifies what style to use for edges.
  • The following option settings can be used:
Automaticuse automatic setting for style
styleuse style for all edges
{viUndirectedEdgevj->styleij,...}use for edge
  • Edges with explicit edge style are taken to use the automatic style.
  • The wrapper Style is equivalent to Property and can be used when creating graphs in functions such as Graph etc.
  • To specify multiple style directives use Directive.
  • Style and other specifications are effectively applied in the order EdgeStyle, Style and other wrappers, and EdgeShapeFunction, with later specifications overriding earlier ones.
Style all edges:
Style individual edges:
Style all edges:
In[1]:=
Click for copyable input
Out[1]=
 
Style individual edges:
In[1]:=
Click for copyable input
Out[1]=
EdgeStyle can be used for general graphs:
Matrix graphs:
Special graphs:
Random graphs:
Use EdgeStyle in a Property wrapper:
Alternatively, use a Style wrapper:
Use Directive to set multiple style directives:
EdgeStyle can be combined with EdgeShapeFunction:
EdgeShapeFunction has higher priority than EdgeStyle:
EdgeStyle can be combined with BaseStyle:
EdgeStyle has higher priority than BaseStyle:
Using Rule to indicate edges does not seem to work:
Use parentheses to get correct parsing:
New in 8