GraphTheory
DegreeSequence
degree sequence of graph
Calling Sequence
Parameters
Description
Examples
DegreeSequence(G)
G
-
graph
DegreeSequence returns a list of the degrees of the vertices of G. For directed graphs, the directions of the edges are ignored.
with⁡GraphTheory:
G≔Graph⁡Trail⁡1,2,3,4,2
G≔Graph 1: an undirected graph with 4 vertices and 4 edge(s)
DegreeSequence⁡G
1,3,2,2
H≔Graph⁡Trail⁡1,2,3,4,2,directed
H≔Graph 2: a directed graph with 4 vertices and 4 arc(s)
DegreeSequence⁡H
DrawGraph⁡G
See Also
Degree
IsRegular
MinimumDegree
Trail
Download Help Document