Learn

Learning preferences

Make learning more comfortable. Changes apply immediately.

Enlarges page content, including diagrams and their labels. You can also use your browser’s zoom.

Choose the colours that are easiest for you to distinguish. Applies to lesson diagrams and lab plots. Labels, shapes, hatching and line patterns also distinguish meanings. Source photographs and raw image brightness stay unchanged; mask-only views are available for image overlays.

ExampleComparisonSample link

Saved in this browser on this device. Preferences are separate from progress backups.

Lesson 15 of 34

Realize or refute a degree sequence

Prove the Havel–Hakimi reduction by switches.

Loading your saved responses…

Try the optional starting-point checks and targeted refreshers. You can continue directly into this lesson.

Try

A list of proposed degrees is not automatically realizable by a simple graph. The sequence (3, 3, 1, 1) has even sum and every entry is at most three, yet two vertices adjacent to everyone force the remaining vertices to have degree at least two. A constructive reduction gives a stronger test and, when successful, builds a graph rather than merely reporting a numerical consistency check.

Predict

Predict which vertices should receive the neighbors of a vertex of largest degree d. Havel–Hakimi says that one may connect it to the d other vertices of largest remaining degrees, subtract one from those degrees, delete the chosen vertex, and repeat. A failed reduction with a negative entry or too many requested neighbors certifies impossibility. The important theorem is that this greedy neighbor choice loses no feasible realization.

Experiment

Apply the reduction to (3, 2, 2, 2, 1).

StageSorted remaining degrees
Start3, 2, 2, 2, 1
Remove degree 3 and reduce next 31, 1, 1, 1
Remove degree 1 and reduce next 11, 1, 0
Finish0, 0

Record vertex labels during reduction so the successful steps can be reversed into actual edges. Sorting only numbers decides existence but discards the information needed to reconstruct a labeled realization.

Understand

The switching proof starts with any realization. Let v be the vertex being removed. If it misses a desired higher-degree neighbor a but meets an undesired lower-degree neighbor b, compare their neighborhoods. There is a vertex x distinct from v, a, b adjacent to a but not b: if ab is absent, b already has neighbor v while a does not; if ab is present, remove that shared adjacency from the comparison. The inequality degree (a)≥degree (b) forces an available x. Delete edges vb and ax, and add va and bx. The chosen conditions prevent loops or repeated edges, and every degree is preserved. This increases the number of desired neighbors of v. Repeat until v meets the prescribed d vertices. Deleting v then gives precisely the reduced sequence.

Apply

Conversely, any realization of the reduced sequence can be extended by a new vertex joined to the prescribed d vertices, restoring all degrees. Thus the reduction is an equivalence, not just a necessary test. The process terminates because each step removes one vertex. It is an algorithm with a proof certificate: a successful reconstruction gives an edge list whose degrees can be checked independently, while a failed step is justified by the equivalence chain. Different tie choices can produce nonisomorphic graphs with the same degree sequence; the degree sequence is not a complete graph invariant.

Continue

Use this lesson to separate three questions: whether a degree sequence is feasible, how to construct one realization, and how to enumerate or classify all realizations. Havel–Hakimi answers the first two but not the third. The proof assumes finite undirected simple graphs. Loops, parallel edges and directed in/out-degree pairs obey different constraints, so the same reduction should not be transferred without a new argument. Basic handshake reasoning remains useful as an initial check, but it cannot replace the structural theorem.

Return to the combinatorics and graph theory unit for prerequisite choices and targeted retries. Continue with encode a labeled tree reversibly.

Apply · explain · revise

Practice and reasoning

Drafts save locally as you type. Reveal worked solutions when useful; the site remembers that exposure. Automatic matches check the requested answer, while written arguments require review against the rubric.

Enter 1 if (3, 3, 2, 2, 2) is a simple-graph degree sequence and 0 otherwise.

Integers, fractions and finite decimals are accepted. Expressions such as sqrt(2) are not parsed by this checker.

Enter 1 if (3, 3, 1, 1) is graphical and 0 otherwise.

Integers, fractions and finite decimals are accepted. Expressions such as sqrt(2) are not parsed by this checker.

Explain the Havel–Hakimi switching step.

Structure your argument and preserve revisions

These optional planning fields save locally. Recording your response saves an immutable copy of the argument and these fields. Older records may contain only first/latest responses; missing intermediate revisions are not reconstructed.

Each field allows 2,000 characters. Keep a specific claim, state where it applies, cite the facts you use, and explain what still needs checking. Blank fields are allowed and are not evidence of mastery.

Prove every simple n-vertex degree lies between 0 and n−1 and the degree sum is even.

Structure your argument and preserve revisions

These optional planning fields save locally. Recording your response saves an immutable copy of the argument and these fields. Older records may contain only first/latest responses; missing intermediate revisions are not reconstructed.

Each field allows 2,000 characters. Keep a specific claim, state where it applies, cite the facts you use, and explain what still needs checking. Blank fields are allowed and are not evidence of mastery.

Construct a graph with degree sequence (2, 2, 2, 1, 1).

Structure your argument and preserve revisions

These optional planning fields save locally. Recording your response saves an immutable copy of the argument and these fields. Older records may contain only first/latest responses; missing intermediate revisions are not reconstructed.

Each field allows 2,000 characters. Keep a specific claim, state where it applies, cite the facts you use, and explain what still needs checking. Blank fields are allowed and are not evidence of mastery.

Give an even-sum bounded degree sequence that is not graphical.

Structure your argument and preserve revisions

These optional planning fields save locally. Recording your response saves an immutable copy of the argument and these fields. Older records may contain only first/latest responses; missing intermediate revisions are not reconstructed.

Each field allows 2,000 characters. Keep a specific claim, state where it applies, cite the facts you use, and explain what still needs checking. Blank fields are allowed and are not evidence of mastery.

Reflect and continue

Before marking this lesson complete, explain one key idea without the worked solution and identify a condition that matters. Marking complete records participation, not independent mastery.