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 > EdgeShapeFunction >
Mathematica > Visualization and Graphics > Graphs & Networks > Graph Styling, Labeling, and Layout > EdgeShapeFunction >

EdgeShapeFunction

EdgeShapeFunction
is an option and property for Graph and related functions that specifies a function to use to generate primitives for rendering each edge.
  • The following option settings can be used:
Automaticthe default edge function
Nonedo not render edges
"name"a named edge function
funca general edge function
{viUndirectedEdgevj->efij,...}use edge function for edge
  • The wrapper Property can be used when creating graphs in functions such as Graph etc.
  • Use to get a list of all named edge functions.
  • EdgeShapeFunction->func specifies that each vertex should be rendered with the primitives provided by , where are line segments and is the edge.
Draw edges using a predefined edge function:
Specify an edge function for an individual edge:
Combine with a different default edge function:
Use a Property wrapper to specify individual edge functions:
Draw edges by running a program:
Draw edges using a predefined edge function:
In[1]:=
Click for copyable input
Out[1]=
 
Specify an edge function for an individual edge:
In[1]:=
Click for copyable input
Out[1]=
Combine with a different default edge function:
In[2]:=
Click for copyable input
Out[2]=
 
Use a Property wrapper to specify individual edge functions:
In[1]:=
Click for copyable input
Out[1]=
 
Draw edges by running a program:
In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=
EdgeShapeFunction can be used for general graphs:
Matrix graphs:
Special graphs:
Random graphs:
Use EdgeShapeFunction in a Property wrapper:
EdgeShapeFunction can be combined with EdgeStyle:
EdgeShapeFunction has higher priority than EdgeStyle:
Get a list of built-in settings for EdgeShapeFunction:
Undirected edges including the basic line:
Lines with different glyphs on the edges:
Directed edges including solid arrows:
Line arrows:
Open arrows:
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