This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

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