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

DirectedEdges

DirectedEdges
is an option for Graph, GraphPlot, and related functions that specifies whether edges should be taken to be directed.
By default rules are taken to be directed edges:
Specify undirected edges:
Obtain a CycleGraph with directed edges:
Create a directed graph from a symmetric adjacency matrix:
Show edges as arrows in GraphPlot:
Do not show edges as arrows in LayeredGraphPlot:
By default rules are taken to be directed edges:
In[1]:=
Click for copyable input
Out[1]=
Specify undirected edges:
In[2]:=
Click for copyable input
Out[2]=
 
Obtain a CycleGraph with directed edges:
In[1]:=
Click for copyable input
Out[1]=
 
Create a directed graph from a symmetric adjacency matrix:
In[1]:=
Click for copyable input
Out[1]=
 
Show edges as arrows in GraphPlot:
In[1]:=
Click for copyable input
Out[1]=
 
Do not show edges as arrows in LayeredGraphPlot:
In[1]:=
Click for copyable input
Out[1]=
DirectedEdges is an option to special graph constructors including PathGraph:
DirectedEdges->True prevents AdjacencyGraph from creating undirected graphs:
By default, edges are shown as lines in GraphPlot and TreePlot:
Show edges as arrows:
By default, edges are shown as arrows in LayeredGraphPlot:
This shows edges as lines:
New in 6
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF