Wolfram Language & System 10.4 (2016)|Legacy Documentation
This is documentation for an earlier version of the Wolfram Language.View current documentation (Version 11.2)
gives the vertex-edge incidence matrix of the graph g.
uses rules to specify the graph g.
- IncidenceMatrix returns a SparseArray object, which can be converted to an ordinary matrix using Normal.
- The incidence matrix for a graph with vertices and edges is an matrix with entries given by:
0 is not incident to 1 , , or -1 2 -2
- The vertices are assumed to be in the order given by VertexList[g] and the edges are assumed to be in the order given by EdgeList[g].
Introduced in 2010
(8.0)| Updated in 2015