IncidenceGraph

IncidenceGraph[m]

gives the graph with incidence matrix m.

IncidenceGraph[{v1,v2,},m]

gives the graph with vertices vi and incidence matrix m.

Details and Options

  • IncidenceGraph[m] gives a graph with vertices {1,2,,n}, where m has dimensions × and the resulting graph has incidence matrix m.
  • IncidenceGraph takes the same options as Graph.

Examples

open allclose all

Basic Examples  (4)

Construct a graph from its incidence matrix:

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

Construct a directed graph from its incidence matrix:

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

Construct a graph with a self-loop:

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

Construct a directed graph from its incidence matrix:

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

Scope  (6)

Options  (79)

Properties & Relations  (4)

See Also

IncidenceMatrix  AdjacencyGraph  KirchhoffGraph

Introduced in 2010
(8.0)