Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Mathematics and Algorithms > Graphs & Networks > Graph Styling, Labeling, and Layout > EdgeStyle >
Mathematica > Visualization and Graphics > Graphs & Networks > Graph Styling, Labeling, and Layout > EdgeStyle >

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
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF