|
SOLUTIONS
|
Mathematica
>
Mathematics and Algorithms
>
Graphs & Networks
>
Constructing Graphs
>
Graphs and Matrices
>
IncidenceGraph
BUILT-IN MATHEMATICA SYMBOL
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]:= |
| Out[1]= | ![]() |
| In[2]:= |
| Out[2]= |
Construct a directed graph from its incidence matrix:
| In[1]:= |
| Out[1]= | ![]() |
| In[2]:= |
| Out[2]= |
Construct a graph with a self-loop:
| In[1]:= |
| Out[1]= | ![]() |
| In[2]:= |
| Out[2]= |
Construct a directed graph from its incidence matrix:
| In[1]:= |
| Out[1]= | ![]() |
| In[2]:= |
| Out[2]= |
New in 8
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »




