IncidenceGraph

IncidenceGraph[m]
gives the graph with incidence matrix m.

IncidenceGraph[{v1,v2,},m]
gives the graph with vertices and incidence matrix m.

Details and OptionsDetails and Options

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

ExamplesExamplesopen allclose all

Basic Examples  (4)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]=
Introduced in 2010
(8.0)