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.

DetailsDetails

  • 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[vUndirectedEdgew, EdgeShapeFunction->f] 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.

ExamplesExamplesopen allclose all

Basic Examples (4)Basic Examples (4)

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]=
New in 8
New to Mathematica? Find your learning path »
Have a question? Ask support »