GraphPlot

GraphPlot[g]
generates a plot of the graph g.

GraphPlot[{vi 1vj 1,vi 2vj 2,}]
generates a plot of the graph in which vertex is connected to vertex .

GraphPlot[{{vi 1vj 1,lbl1},}]
associates labels with edges in the graph.

GraphPlot[m]
generates a plot of the graph represented by the adjacency matrix m.

Details and OptionsDetails and Options

ExamplesExamplesopen allclose all

Basic Examples  (2)Basic Examples  (2)

Plot a network from rules for connections:

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

Show the directions of edges:

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

Include labels for vertices:

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

Show labels for edges:

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

Draw a graph specified by its adjacency matrix:

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

Include self-loops and multiedges:

In[2]:=
Click for copyable input
Out[2]=
Introduced in 2007
(6.0)
| Updated in 2014
(10.0)
Translate this page: