IncidenceMatrix
The vertex-by-edge incidence matrix of a Graph.
✓ checked against that system · ! checked, with disagreements (hover a chip)Wolfram Language
IncidenceMatrix!IncidenceMatrix(g)row = vertex (in VertexList order), column = edge (in EdgeList order). An undirected edge puts 1 in both its endpoints' rows; a directed edge puts -1 at its source and 1 at its target.Typed signatures
| Type | Package | Applies |
|---|---|---|
(value) -> list<list<integer>> | combinatorics | always |
Details
- Returned as a plain matrix (a list of lists), same convention as AdjacencyMatrix.
Examples
About
| Examples | 1 |
|---|---|
| Checked against | Wolfram Language 1 differ |
| Crosswalk | Wolfram Language |
See also: AdjacencyMatrix, EdgeList