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]=
New in 8
New to Mathematica? Find your learning path »
Have a question? Ask support »