A topic in the Open Knowledge Graph — a free, open map of 15,290 topics and the order to learn them in.

Hamiltonian Cycles: Dirac and Ore Conditions

Graduate Depth 88 in the knowledge graph ☐ I know this ☆ Set as goal
4topics build on this
410prerequisites beneath it
See this on the map →
Hamiltonian Circuits and PathsHamiltonian Cycles: Sufficient Conditions and Challenges→→Turán's Theorem and Extremal Graph TheoryVizing's Theorem
graph-theory hamiltonicity

Core Idea

Dirac's Theorem states that a graph with n ≥ 3 vertices where every vertex has degree at least n/2 is Hamiltonian. Ore's Theorem generalizes: if for every non-adjacent pair u,v we have deg(u) + deg(v) ≥ n, the graph is Hamiltonian. These conditions elegantly show that high minimum degree guarantees Hamiltonian cycles, though deciding Hamiltonicity in general remains NP-hard.

How It's Best Learned

Verify these conditions on small graphs (n ≤ 6) and check that they hold for known Hamiltonian graphs.

Common Misconceptions

These conditions are sufficient but not necessary; graphs can be Hamiltonian without satisfying Dirac or Ore conditions.

Explainer

From your study of Hamiltonian circuits, you know that a Hamiltonian cycle visits every vertex in a graph exactly once before returning to the start — the graph-theoretic version of a round trip through every city. The hard question is whether such a cycle exists at all. Unlike Eulerian circuits, which have a clean necessary-and-sufficient condition (every vertex has even degree), Hamiltonicity has no simple characterization. But there are powerful *sufficient* conditions that guarantee a Hamiltonian cycle whenever certain degree requirements are met.

Dirac's theorem gives the clearest guarantee: if a graph has n ≥ 3 vertices and every vertex has degree at least n/2, then the graph is Hamiltonian. The intuition is density. If every vertex is connected to at least half the graph, you are never boxed in — no matter which path you're building, the current endpoint always has enough neighbors that you can continue visiting new vertices, and the high connectivity ensures you can eventually close the cycle back to the start. For a graph with 10 vertices, Dirac requires every vertex to have degree ≥ 5: each vertex must reach more than half the other vertices.

Ore's theorem relaxes the requirement from individual vertices to pairs. Instead of requiring each vertex to have high degree, it requires that for every pair of *non-adjacent* vertices u and v, deg(u) + deg(v) ≥ n. The idea: if u and v are not directly connected, they must together "cover" enough of the graph to ensure a Hamiltonian path exists between them. Every graph satisfying Dirac also satisfies Ore (if both vertices individually have degree ≥ n/2, their sum is ≥ n), but not vice versa — Ore can apply when individual vertices have low degree, as long as every low-degree vertex is adjacent to every other low-degree vertex.

The critical caveat is that both conditions are sufficient but not necessary. A graph can be Hamiltonian without satisfying either. A simple cycle on 10 vertices — each vertex with degree 2 — is trivially Hamiltonian (it is one big cycle), yet degree 2 is far below the Dirac threshold of 5. The theorems are one-way doors: satisfying the condition guarantees a Hamiltonian cycle, but failing the condition tells you nothing. This asymmetry reflects a deep fact: determining whether an arbitrary graph is Hamiltonian is NP-hard, meaning no polynomial-time algorithm is known. Eulerian circuits were easy; Hamiltonian cycles are genuinely hard. Dirac and Ore identify a large, well-structured region where the hard problem becomes easy.

Practice Questions 5 questions

Prerequisite Chain

Understanding Zero → The Number Zero → Counting to Five → Counting to 10 → Counting to 20 → Counting a Set of Objects Up to 20 → Cardinality: The Last Number Counted → Matching Numerals to Quantities → Subitizing Small Quantities → Addition Within 10 → Number Bonds to 10 → Addition Within 20 → Doubles and Near Doubles → Doubles Facts Within 10 → Near Doubles Facts Within 20 → Mental Math Strategies for Addition → Mental Math: Adding and Subtracting Tens → Addition Within 100 → Repeated Addition as Multiplication → Multiplication as Equal Groups → Multiplication: Arrays → Basic Multiplication Facts (0s, 1s, 2s, 5s, 10s) → Multiplication Facts Within 100 → Division as Equal Sharing → Division as Grouping (Measurement Division) → Division: Grouping (Repeated Subtraction) Model → Division: Fair Sharing Model → Division as Equal Sharing → Division as Grouping → Basic Division Facts → Division Facts Within 100 → Multiplication and Division Fact Families → Relationship Between Multiplication and Division → Division Facts as Inverse of Multiplication → Remainders and Quotients in Division → Division Word Problems → Multi-Step Word Problems → Solving Multi-Step Word Problems → Multiplication Word Problems → Division Word Problems → Introduction to Long Division → Factors and Multiples → Prime and Composite Numbers → Equivalent Fractions → Relating Fractions and Decimals → Decimal Place Value → Integers and the Number Line → Comparing and Ordering Integers → Absolute Value → Adding Integers → Subtracting Integers → Multiplying Integers → Introduction to Exponents → Order of Operations → Integer Order of Operations → Variable Expressions → The Distributive Property → Variables and Expressions Review → Introduction to Polynomials → Adding and Subtracting Polynomials → Multiplying Polynomials → Factorial → Permutations → Combinations → Counting Principles: Addition and Multiplication Rules → Introduction to Graph Theory → Propositional Logic Foundations → Logical Equivalences → Set Operations: Union, Intersection, and Complement → Proof by Cases → Proving by Cases and Exhaustion → Vacuous Truth and Trivial Cases → Proof by Cases (Proof by Exhaustion) → Mathematical Induction → Graph Paths, Cycles, and Connectivity → Trees and Spanning Trees → Planar Graphs and Euler's Formula → Graph Coloring and the Chromatic Number → Graph Coloring and Chromatic Numbers → Bipartite Graphs and Matching Problems → Bipartite Graphs and 2-Colorability → Graph Matching and Hall's Marriage Theorem → Network Flows: Maximum Flow and Minimum Cut → Walks, Trails, Paths, and Cycles in Graphs → Eulerian Paths, Circuits, and Characterization → Euler Paths, Euler Circuits, and Applications → Hamiltonian Paths and Cycles → Hamiltonian Circuits and Paths → Hamiltonian Cycles: Dirac and Ore Conditions

Longest path: 89 steps · 410 total prerequisite topics

Prerequisites (2)

Leads To (2)