VertexOutDegree

VertexOutDegree[g]

gives the list of vertex out-degrees for all vertices in the graph g.

VertexOutDegree[g,v]

gives the vertex out-degree for the vertex v.

VertexOutDegree[{vw,},]

uses rules vw to specify the graph g.

Details

  • The vertex out-degree for a vertex v is the number of outgoing directed edges from v.
  • For an undirected graph g, an edge is taken to be both an in-edge and an out-edge. »

Examples

open allclose all

Basic Examples  (2)

Find the out-degree for each vertex:

Find the out-degree for a specified vertex:

Scope  (6)

VertexOutDegree works with directed graphs:

Undirected graphs:

Multigraphs:

Vertex out-degree for a vertex:

Use rules to specify the graph:

VertexOutDegree works with large graphs:

Applications  (4)

Highlight the vertex by its vertex out-degree for CycleGraph:

StarGraph:

GridGraph:

CompleteKaryTree:

PathGraph:

RandomGraph:

Show the out-degree histogram for BernoulliGraphDistribution[n,p]:

The out-degree distribution follows BinomialDistribution[n-1,p]:

A PriceGraphDistribution is constructed, adding new vertices with a constant number of edges:

In this case, three edges from each new vertex (except initially) are added:

Create a food chain where an edge indicates what animals and insects eat:

The out-degree corresponds to the number of predators for the species:

Animals with zero out-degree are called top species or apex predators:

Properties & Relations  (7)

The out-degree of an undirected graph is the number of edges incident to each vertex:

Self-loops are counted twice:

Undirected graphs correspond to directed graphs with each edge both an in- and out-edge:

For an undirected graph, the vertex in-degree and out-degree are equal to the vertex degree:

For a directed graph, the sum of the vertex in-degree and out-degree is the vertex degree:

Put the vertex degree, in-degree, and out-degree before, above, and below the vertex, respectively:

The sum of the out-degrees of all vertices of an undirected graph is twice the number of edges:

The sum of the out-degrees of all vertices of a directed graph is equal to the number of edges:

A connected directed graph is Eulerian iff every vertex has equal in-degree and out-degree:

Wolfram Research (2010), VertexOutDegree, Wolfram Language function, https://reference.wolfram.com/language/ref/VertexOutDegree.html (updated 2015).

Text

Wolfram Research (2010), VertexOutDegree, Wolfram Language function, https://reference.wolfram.com/language/ref/VertexOutDegree.html (updated 2015).

CMS

Wolfram Language. 2010. "VertexOutDegree." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2015. https://reference.wolfram.com/language/ref/VertexOutDegree.html.

APA

Wolfram Language. (2010). VertexOutDegree. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/VertexOutDegree.html

BibTeX

@misc{reference.wolfram_2024_vertexoutdegree, author="Wolfram Research", title="{VertexOutDegree}", year="2015", howpublished="\url{https://reference.wolfram.com/language/ref/VertexOutDegree.html}", note=[Accessed: 26-December-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_vertexoutdegree, organization={Wolfram Research}, title={VertexOutDegree}, year={2015}, url={https://reference.wolfram.com/language/ref/VertexOutDegree.html}, note=[Accessed: 26-December-2024 ]}