degreesequence
Degreesequence, commonly called degree sequence, is a fundamental concept in graph theory that records how many connections each vertex has in a graph. For a simple undirected graph G with n vertices, the degree sequence is a nonincreasing sequence d1 ≥ d2 ≥ ... ≥ dn, where di is the degree of the i-th vertex. The sequence is graphical if there exists a simple graph with that degree sequence; otherwise it is non-graphical.
A basic necessary condition is the handshake lemma: the sum of the degrees equals twice the number
The Erdős–Gallai theorem provides a necessary and sufficient criterion: for every k from 1 to n, the
A simple example is the sequence (2,2,2,2), which is graphical and realized by a 4-cycle. Degreesequences extend