VertexInDegree
The number of edges of a Graph pointing INTO a vertex.
✓ checked against that system · ! checked, with disagreements (hover a chip)Wolfram Language
VertexInDegree✓VertexInDegree(g)every vertex's in-degree, in VertexList(g) order.VertexInDegree(g, v)just v's in-degree.Typed signatures
| Type | Package | Applies |
|---|---|---|
(value, any?) -> integer | list<integer> | combinatorics | always |
Details
- On a graph with at least one directed edge, undirected edges contribute NOTHING to VertexInDegree (kernel-verified against Wolfram 15): Graph({1->2, 2<->3, 3->1}) gives in-degree {1, 1, 0} -- the undirected 2<->3 edge is invisible here, only the two directed edges count, each at the one endpoint it actually points to.
- On a graph with NO directed edge at all (purely undirected), VertexInDegree = VertexOutDegree = VertexDegree instead.
Examples
About
| Examples | 2 |
|---|---|
| Checked against | Wolfram Language 2 agree |
| Crosswalk | Wolfram Language |
See also: VertexOutDegree, VertexDegree