Skip to content

VertexOutDegree ​

The number of edges of a Graph leaving a vertex.

✓ checked against that system · ! checked, with disagreements (hover a chip)Wolfram LanguageVertexOutDegree✓
VertexOutDegree(g)every vertex's out-degree, in VertexList(g) order.
VertexOutDegree(g, v)just v's out-degree.
Typed signatures
TypePackageApplies
(value, any?) -> integer | list<integer>combinatoricsalways

Domain: Collections

Details
  • See VertexInDegree for how undirected edges are handled -- the two heads are symmetric.

Examples

Basic #
live ↗
InVertexOutDegree(Graph([1,2,3],[DirectedEdge(1,2),DirectedEdge(1,3)]),1)\mathrm{VertexOutDegree}(\mathrm{Graph}(\bigl\lbrack1, 2, 3\bigr\rbrack, \bigl\lbrack\mathrm{DirectedEdge}(1, 2), \mathrm{DirectedEdge}(1, 3)\bigr\rbrack), 1)Out22
live ↗
InVertexOutDegree(Graph([1,2,3],[DirectedEdge(1,2),UndirectedEdge(2,3),DirectedEdge(3,1)]))\mathrm{VertexOutDegree}(\mathrm{Graph}(\bigl\lbrack1, 2, 3\bigr\rbrack, \bigl\lbrack\mathrm{DirectedEdge}(1, 2), \mathrm{UndirectedEdge}(2, 3), \mathrm{DirectedEdge}(3, 1)\bigr\rbrack))Out[1,0,1]\bigl\lbrack1, 0, 1\bigr\rbrack
Applications #
live ↗
InUnion(VertexOutDegree(g))\mathrm{Union}(\mathrm{VertexOutDegree}(g))OutVertexOutDegree(g)\mathrm{VertexOutDegree}(g)
About
Examples3
Checked againstWolfram Language 3 agree
CrosswalkWolfram Language

See also: VertexInDegree, VertexDegree