ErdsGallai
The Erdős–Gallai theorem provides a complete characterization of which degree sequences can be realized as simple graphs. It was introduced by Paul Erdős and T. Gallai in 1960 and remains a foundational result in graph theory, with applications to network reconstruction and degree sequence testing.
Let d1 ≥ d2 ≥ ... ≥ dn be a sequence of nonnegative integers with even sum. The sequence is
sum_{i=1}^k d_i ≤ k(k − 1) + sum_{i=k+1}^n min(d_i, k)
holds. The evenness of the total sum is necessary because it equals twice the number of edges
Consequences and context: the theorem provides a finite set of inequalities to test graphicality, enabling polynomial-time
See also: Havel–Hakimi algorithm; graphical degree sequence; majorization in graph theory. References: Erdős, P.; Gallai, T.