Mathwords logoMathwords

Perfect Graph — Definition & Example

A perfect graph is a graph in which, no matter which vertices you keep, the fewest colors needed to color what remains equals the size of its largest clique. The largest clique is the only obstacle to coloring, and that stays true in every piece of the graph.

A simple graph GG is perfect if χ(H)=ω(H)\chi(H) = \omega(H) for every induced subgraph HH of GG. Here χ\chi is the chromatic number and ω\omega is the clique number. By the Strong Perfect Graph Theorem (Chudnovsky, Robertson, Seymour, Thomas, 2006), GG is perfect if and only if it has no odd hole and no odd antihole. An odd hole is an induced cycle of odd length at least 5, and an odd antihole is the complement of one.

Worked Example

Problem: Graph GG is the disjoint union of a 5-cycle C5C_5 (vertices 1–5) and a complete graph K4K_4 (vertices 6–9). Show that χ(G)=ω(G)\chi(G) = \omega(G), yet GG is not perfect.
Step 1: Check the whole graph. The K4K_4 is a clique of size 4, and C5C_5 has no triangle, so ω(G)=4\omega(G) = 4. The K4K_4 needs 4 colors. The C5C_5 needs only 3, and it can reuse those same colors. So χ(G)=4\chi(G) = 4.
χ(G)=ω(G)=4\chi(G) = \omega(G) = 4
Step 2: Now keep only vertices 1–5. This gives the induced subgraph H=C5H = C_5. Its largest clique is a single edge, so ω(H)=2\omega(H) = 2. Two colors would have to alternate around the cycle, and that fails because the cycle has odd length. So χ(H)=3\chi(H) = 3.
χ(H)=3≠2=ω(H)\chi(H) = 3 \neq 2 = \omega(H)
Step 3: Perfection requires equality in every induced subgraph. HH breaks that rule, so GG is not perfect. HH is an odd hole, which is exactly what the Strong Perfect Graph Theorem forbids.
Answer: χ(G)=ω(G)=4\chi(G) = \omega(G) = 4, but the induced 5-cycle has χ=3\chi = 3 and ω=2\omega = 2. So GG is not perfect. Equality for the whole graph is not enough.

Why It Matters

Graph coloring and finding a maximum clique are NP-hard in general. For perfect graphs, both can be solved in polynomial time (Grötschel, Lovász, Schrijver). Interval graphs are perfect, so when you schedule meetings in rooms, the minimum number of rooms equals the largest number of meetings that overlap at one moment.

Common Mistakes

Mistake: Concluding that any graph containing an odd cycle is imperfect.
Correction: Triangles are odd cycles, yet K3K_3 is perfect because χ=ω=3\chi = \omega = 3. Only induced odd cycles of length 5 or more (odd holes), or their complements, rule out perfection.

Related Terms

  • Clique — Its maximum size sets the clique number in the definition
  • Bipartite Graph — Every bipartite graph is a standard example of a perfect graph
  • Complete Graph — Perfect, since it needs exactly as many colors as vertices
  • Acyclic Graph — Forests are bipartite and therefore always perfect graphs