AdjacencyMatrix
The vertex-by-vertex adjacency matrix of a Graph, indexed by VertexList order.
✓ checked against that system · ! checked, with disagreements (hover a chip)Wolfram Language
AdjacencyMatrix!AdjacencyMatrix(g)entry is the number of edges from vertex to vertex — 0 or 1 for a simple graph, symmetric when every edge is undirected.Typed signatures
| Type | Package | Applies |
|---|---|---|
(value) -> list<list<integer>> | combinatorics | always |
Details
- Returned as a plain matrix (a list of lists) rather than Wolfram's default
SparseArray— a deliberate simplification here, since this library has no sparse-matrix head to return instead.
Examples
Basic #
About
| Examples | 4 |
|---|---|
| Checked against | Wolfram Language 4 differ |
| Crosswalk | Wolfram Language |
See also: IncidenceMatrix, VertexDegree, WeightedAdjacencyMatrix