gives the vertex-edge incidence matrix of 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