VertexDegree
How many edge-ends meet a vertex — direction-blind (a self-loop counts twice).
✓ checked against that system · ! checked, with disagreements (hover a chip)Wolfram Language
VertexDegree✓VertexDegree(g)the degree of every vertex of , as a list in VertexList order.VertexDegree(g, v)the degree of alone.Typed signatures
| Type | Package | Applies |
|---|---|---|
(value, any?) -> value | combinatorics | always |
Details
- Total degree, in and out combined — a directed edge counts once at each endpoint, same as an undirected one. Sums to (the handshake lemma), which the tests check against an independently-computed sum on random graphs.
Examples
3 more kept as data, checked against the oraclesAbout
| Examples | 5 |
|---|---|
| Checked against | Wolfram Language 4 agree |
| Crosswalk | Wolfram Language |
See also: AdjacencyMatrix, Graph