Extremal Combinatorics
Turán's Theorem: The Densest Triangle-Free Graph
Pack as many edges as you can into a graph on n vertices without ever forming a triangle, and you cannot beat ⌊n²/4⌋ — exactly the count of the complete bipartite graph that splits the vertices into two nearly equal halves. Turán's theorem is the sharp answer to that packing problem and its higher analogue: among all n-vertex graphs with no complete subgraph on r+1 vertices, the unique edge-maximizer is the balanced complete r-partite graph, the Turán graph T(n, r).
Formally, if a graph G on n vertices contains no Kr+1, then its number of edges satisfies e(G) ≤ (1 − 1/r)·n²/2, with equality if and only if G = T(n, r). The triangle-free case r = 2 recovers the ⌊n²/4⌋ bound of Mantel (1907); Turán proved the general statement in 1941, founding the field of extremal graph theory.
- FieldExtremal combinatorics / graph theory
- First provedPál Turán, 1941 (case r=2 by Mantel, 1907)
- StatementK_{r+1}-free ⇒ e(G) ≤ (1 − 1/r)·n²/2
- Extremal graphBalanced complete r-partite Turán graph T(n, r), uniquely
- Triangle-free bound⌊n²/4⌋ edges, achieved by K_{⌊n/2⌋,⌈n/2⌉}
- Proof techniquesInduction, weight-shifting / Zykov symmetrization, Cauchy–Schwarz
Interactive visualization
Press play, or step through manually. The visualization is yours to drive — try it before reading on.
Watch the 60-second explainer
A condensed visual walkthrough — narrated, captioned, under a minute.
The precise statement
Fix integers n ≥ 1 and r ≥ 2. Let G be a simple graph on n vertices containing no clique Kr+1 (no r+1 mutually adjacent vertices). Turán's theorem asserts
- e(G) ≤ (1 − 1/r)·n²/2, and
- equality holds if and only if G is the Turán graph T(n, r).
The Turán graph T(n, r) is the complete r-partite graph whose parts are as equal as possible: partition the n vertices into r blocks of sizes ⌊n/r⌋ or ⌈n/r⌉, and join two vertices exactly when they lie in different blocks. It is Kr+1-free because a clique can use at most one vertex per part.
Two hypotheses do the work: G is simple and finite, and the forbidden object is a complete graph Kr+1. When n is divisible by r the bound is exactly (1 − 1/r)·n²/2; otherwise the true maximum is e(T(n, r)), which the closed form slightly rounds. The r = 2 case gives ⌊n²/4⌋, Mantel's theorem.
The picture: why balance wins
The intuition is a tension between two forces. To avoid a Kr+1, you must leave the vertices r-colorable at the clique level — no r+1 pairwise-linked vertices. The most edges you can afford under that constraint come from an r-partite structure: split into r independent groups and connect everything across groups. That already forbids Kr+1 for free.
Given that you'll be r-partite, how big should the parts be? The number of cross-edges is maximized when the parts are as equal as possible. This is a convexity fact: if one part has a vertices and another has b > a, moving a vertex from the big part to the small part changes the edge count by (b − 1) − a > 0 whenever b > a + 1, so imbalance always loses edges.
- Avoiding the clique pushes you to r-partite.
- Maximizing density pushes the parts toward equal size.
The Turán graph is the unique configuration that satisfies both — the densest possible graph that still dodges Kr+1.
The key idea of the proof
Several proofs exist; the cleanest is Zykov's symmetrization (weight-shifting), which turns any extremal graph into a Turán graph. Take a Kr+1-free graph G with the maximum number of edges. Call two vertices equivalent if they are non-adjacent. The trick is:
- If u and v are non-adjacent, we may replace v by a clone of u (delete v's edges, copy u's neighborhood onto v) without creating a Kr+1 and without losing edges — otherwise u or v had strictly fewer neighbors, contradicting maximality after cloning the higher-degree one.
- If u and v are non-adjacent and w is adjacent to both, one checks a degree comparison forces non-adjacency to be an equivalence relation on an extremal G.
Non-adjacency being an equivalence relation means the vertices partition into independent sets that are completely joined to each other — G is complete multipartite. Since G is Kr+1-free it has at most r parts, and the convexity argument forces the parts to be balanced. Hence G = T(n, r). An alternative induction removes a maximum clique Kr and bounds the rest; a third proof uses Cauchy–Schwarz on the degree sequence via ∑ d(v) counted over non-edges.
Worked example: r = 2, the triangle-free case
Take n = 6 and forbid triangles (r = 2). Turán's bound gives (1 − 1/2)·6²/2 = 9 edges. The extremal graph is T(6, 2) = K3,3: split six vertices into two blocks {a,b,c} and {x,y,z} and connect every a-type vertex to every x-type vertex. That's 3 × 3 = 9 edges, and it is genuinely triangle-free since any triangle would need two vertices in one block, but those two are non-adjacent.
Can you do better with 10 edges on 6 vertices? No — any 10-edge graph on six vertices must contain a triangle. And unbalanced bipartite graphs lose: K2,4 has only 2 × 4 = 8 edges, one short of the balanced K3,3. For odd n, say n = 7, the maximum is ⌊49/4⌋ = 12 = 3 × 4 = e(K3,4).
For r = 3, n = 6: the bound is (2/3)·36/2 = 12 edges, achieved by T(6,3) = K2,2,2 (the octahedron), which has no K₄.
Where the hypotheses bite, and connections
The forbidden graph must be complete. Turán's clean bound is a clique phenomenon. If you instead forbid a bipartite graph like Ks,t, the answer collapses: by the Kővári–Sós–Turán theorem the maximum is only O(n2−1/s) = o(n²) edges, a completely different, sub-quadratic regime where the extremal graphs are not Turán graphs at all (they come from incidence geometry and are notoriously hard to pin down exactly).
The chromatic number is what matters asymptotically. The Erdős–Stone theorem (1946) generalizes Turán: for any fixed graph H with chromatic number χ(H) = r+1, the maximum edge count is (1 − 1/r + o(1))·n²/2. So Turán's exact bound is the leading term of the whole extremal picture; the o(n²) error only vanishes cleanly when H is itself a clique.
- Turán is the exact, non-asymptotic case χ(H) = r+1 with H = Kr+1.
- Erdős–Stone extends it to all non-bipartite H, up to a lower-order error.
Why it matters
Turán's theorem founded extremal graph theory — the systematic study of how a forbidden local structure forces a global density ceiling. It set the template of forbidden subgraph → sharp edge bound → unique extremal example that recurs throughout the subject.
- Ramsey theory: Turán-type density bounds feed lower-bound constructions and interact with Ramsey numbers; the triangle-free extremal graph shows you can pack ~n²/4 edges without a triangle.
- Additive combinatorics: the Kruskal–Katona and Turán-density machinery underlies results on sum-free sets and independent sets.
- Hypergraph Turán problems: the analogue for 3-uniform hypergraphs (e.g. the Turán density of K₄⁽³⁾) is a famous open problem — Turán's own conjecture — showing how deep the innocent-looking question runs.
- Spectral and probabilistic methods: the theorem admits proofs via eigenvalue bounds (Wilf, Motzkin–Straus) linking clique number to the largest eigenvalue and to a quadratic optimization over the simplex.
Its worked identity Motzkin–Straus — max of ∑ij∈E xixj over the probability simplex equals ½(1 − 1/ω(G)) — even reframes clique number as a continuous optimization.
| Result | Forbidden subgraph | Max edges | Extremal graph |
|---|---|---|---|
| Mantel (1907) | K₃ (triangle) | ⌊n²/4⌋ | K_{⌊n/2⌋,⌈n/2⌉} (balanced bipartite) |
| Turán (1941) | K_{r+1} | (1 − 1/r)·n²/2 | T(n, r) (balanced r-partite) |
| Erdős–Stone (1946) | Any H with χ(H)=r+1 | (1 − 1/r + o(1))·n²/2 | Asymptotically T(n, r) |
| Kővári–Sós–Turán (1954) | K_{s,t} (bipartite) | O(n^{2−1/s}) | Incidence-type, non-Turán |
Frequently asked questions
What exactly does Turán's theorem say?
If a simple graph G on n vertices contains no clique K_{r+1}, then it has at most (1 − 1/r)·n²/2 edges. Equality holds only for the Turán graph T(n, r), the balanced complete r-partite graph. For r = 2 this is Mantel's ⌊n²/4⌋ bound for triangle-free graphs.
Why is the extremal graph the balanced one, not just any r-partite graph?
Any complete r-partite graph is automatically K_{r+1}-free, so the only question is which part sizes maximize cross-edges. The number of edges is a concave function of the part sizes, so it is maximized when the parts differ by at most one. Any imbalance strictly loses edges, which is why T(n, r) is the unique maximizer.
What is the difference between Turán's theorem and Mantel's theorem?
Mantel's theorem (1907) is the special case r = 2: a triangle-free graph on n vertices has at most ⌊n²/4⌋ edges. Turán's theorem (1941) generalizes it to forbidding any clique K_{r+1}, giving the bound (1 − 1/r)·n²/2. Mantel came first and is the historical seed of the result.
Does the theorem still hold if I forbid a non-complete subgraph?
Not with the same exact bound. If you forbid a bipartite graph like K_{s,t}, the Kővári–Sós–Turán theorem shows the maximum is only O(n^{2−1/s}) = o(n²) edges — a completely different sub-quadratic regime. For a general graph H, Erdős–Stone gives (1 − 1/(χ(H)−1) + o(1))·n²/2, so only the chromatic number matters asymptotically, and the exact answer is clean only when H is a clique.
What is the key mechanism in the proof?
The slickest argument is Zykov symmetrization: in a maximal K_{r+1}-free graph you can 'clone' vertices — replacing a vertex by a copy of a non-adjacent, higher-degree vertex never creates a forbidden clique and never loses edges. Iterating forces non-adjacency to be an equivalence relation, making the graph complete multipartite; K_{r+1}-freeness caps it at r parts, and convexity balances them.
How does Turán's theorem connect to eigenvalues?
The Motzkin–Straus theorem recasts the clique number as a continuous optimization: the maximum of the quadratic form ∑_{ij∈E} x_i x_j over the probability simplex equals ½(1 − 1/ω(G)), where ω(G) is the clique number. Combined with spectral bounds (Wilf's inequality relating the largest adjacency eigenvalue to ω), this yields spectral proofs and refinements of Turán's bound.