TreePlot

TreePlot[g]

generates a tree plot of the graph g.

TreePlot[{e1,e2,}]

generates a tree plot of the graph with edges ej.

TreePlot[{,w[ei],}]

plots ei with features defined by the symbolic wrapper w.

TreePlot[{vi 1vj 1,}]

uses rules vi 1vj 1 to specify the graph g.

TreePlot[m]

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

TreePlot[,pos]

places roots of trees in the plot at position pos.

TreePlot[,,v]

uses vertex v as the root vertex in the tree plot.

Details and Options

Examples

open all close all

Basic Examples  (5)

Plot a graph:

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

Plot a graph specified by edge rules:

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

Plot a graph specified by its adjacency matrix:

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

Drawing a tree with different orientation from the default:

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

Specify the root node:

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

Scope  (10)

Options  (7)

Applications  (8)

Properties & Relations  (4)

Possible Issues  (2)

Neat Examples  (1)

Introduced in 2007
(6.0)
|
Updated in 2019
(12.0)