|
SOLUTIONS
|
BUILT-IN MATHEMATICA SYMBOL
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:
-
Automatic the default edge function None do not render edges "name" a named edge function func a general edge function {vi
vj->efij,...}use edge function
for edge 
- The wrapper Property[v
w, 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]:= |
| Out[1]= | ![]() |
Specify an edge function for an individual edge:
| In[1]:= |
| Out[1]= | ![]() |
Combine with a different default edge function:
| In[2]:= |
| Out[2]= | ![]() |
Use a Property wrapper to specify individual edge functions:
| In[1]:= |
| Out[1]= | ![]() |
Draw edges by running a program:
| In[1]:= |
| In[2]:= |
| Out[2]= | ![]() |
New in 8
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »






