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

EdgeRenderingFunction

EdgeRenderingFunction
is an option for GraphPlot and related functions that gives a function to generate the graphics primitives to use in rendering each edge.
  • EdgeRenderingFunction->g specifies that each edge should be rendered with the graphics primitives given by , where , are the beginning and ending points of the edge, , are the beginning and ending vertices, the is any label specified for the edge.
  • The graphics primitives obtained by applying EdgeRenderingFunction are in effect directly spliced into the graphic generated by a function like GraphPlot. Inset can be used to insert an arbitrary expression.
Draw edges as red arrows set back by a small amount:
Draw edges as cylinders and vertices as spheres:
Do not draw edges at all:
Draw edges as red arrows set back by a small amount:
In[1]:=
Click for copyable input
Out[1]=
 
Draw edges as cylinders and vertices as spheres:
In[1]:=
Click for copyable input
Out[1]=
 
Do not draw edges at all:
In[1]:=
Click for copyable input
Out[1]=
Draw text on each edge:
Draw graphics on each edge:
New in 6
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF