LayeredGraphPlot

LayeredGraphPlot[g]

generates a layered plot of the graph g.

LayeredGraphPlot[{vi 1vj 1,vi 2vj 2,}]

generates a layered plot of the graph in which vertex vik is connected to vertex vjk.

LayeredGraphPlot[{{vi 1vj 1,lbl1},}]

associates labels lblk with edges in the graph.

LayeredGraphPlot[g,pos]

places the dominant vertices in the plot at position pos.

LayeredGraphPlot[m]

generates a layered plot of the graph represented by the adjacency matrix m.

Details and Options

Examples

open allclose all

Basic Examples  (5)

Draw a directed graph using a hierarchical layout:

In[1]:=
Click for copyable input
Out[1]=

Include vertex labels:

In[1]:=
Click for copyable input
Out[1]=

Show edge labels:

In[1]:=
Click for copyable input
Out[1]=

Draw a graph specified by its adjacency matrix:

In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=

Drawing a graph with different orientation from the default:

In[1]:=
Click for copyable input
Out[1]=

Scope  (9)

Options  (23)

Applications  (5)

Properties & Relations  (3)

Possible Issues  (1)

Neat Examples  (1)

See Also

Graph  TreePlot  GraphPlot  GraphPlot3D  GraphData

Tutorials

Introduced in 2007
(6.0)
| Updated in 2014
(10.0)