fundamentals
Degree Sequences
You should know: graph basics
Overview
The degree sequence of a graph is the list of all vertex degrees, usually sorted in non-increasing order. It's a simple invariant — just count edges at each vertex — but it packs a surprising amount of structural information: it instantly tells you the number of edges (via the handshaking lemma), and a purely arithmetic test (the Erdős–Gallai theorem) tells you whether ANY simple graph could ever produce a given sequence, without having to construct one. Not every list of non-negative integers is a valid degree sequence — a sequence that passes the test is called 'graphical'. Degree sequences show up whenever a network's connectivity pattern matters more than its exact wiring: internet router degree distributions, social network 'friend counts', and chemistry (atom valences in molecular graphs) are all degree-sequence questions in disguise.
Intuition
Think of the degree sequence as a shopping list of 'how many connections does each person need' at a party. The handshaking lemma is just double counting: every handshake (edge) gives exactly 2 people a tally mark, so the total tally is always even — an odd degree sum is an instant red flag that no graph can match it. The Erdős–Gallai condition is a sharper version of the same idea: it checks that the k neediest people don't demand more handshakes than the room can physically supply, once you account for how many handshakes the remaining guests can each contribute.
Formal Definition
For a graph G = (V, E) with vertices v₁, …, vₙ, the degree sequence is (deg(v₁), …, deg(vₙ)) sorted so that d₁ ≥ d₂ ≥ … ≥ dₙ. The Erdős–Gallai theorem characterizes exactly which sequences are graphical:
Worked Examples
Sum the degrees.
By the handshaking lemma, the sum of degrees is twice the number of edges.
Answer: 6 edges.
Practice Problems
A graph has degree sequence (5, 4, 3, 2, 2). How many edges does it have?
Explain why (3, 3, 3, 1, 1) cannot be the degree sequence of any simple graph.
A network engineer proposes connecting 5 routers so their connection counts (degrees) are (4, 4, 4, 4, 4). Verify this is achievable and identify what topology it forces.
Quiz
Summary
- The degree sequence lists each vertex's degree, usually sorted in non-increasing order.
- Handshaking lemma: Σdeg(v) = 2|E| — the degree sum is always even and equals twice the edge count.
- An odd degree sum instantly rules out a sequence; the Erdős–Gallai theorem gives the full test for whether a sequence is 'graphical'.
- The Havel–Hakimi algorithm constructively realizes a graphical sequence as an actual graph.
Mathematics