Tutorials › Graph Theory (Undergraduate) › The Weak Perfect Graph Theorem

Perfect Graphs and Special Colorings · Tutorial 406 of 799

The Weak Perfect Graph Theorem

Learn how complementation changes cliques and colorings, and how the Weak Perfect Graph Theorem applies to small graphs.

Advanced 11 min read

What You'll Learn

  • Define perfect graphs using chromatic and clique numbers of induced subgraphs.
  • Compute a graph complement and its induced subgraphs.
  • Relate clique number in a complement to independence number in the original graph.
  • Relate coloring a complement to partitioning the original graph into cliques.
  • Apply the Weak Perfect Graph Theorem to examples, including an imperfect graph.

Perfectness and Complementation

A graph and its complement have opposite adjacency rules: every pair of distinct vertices is an edge in exactly one of them. This changes cliques into independent sets, and changes proper colorings into partitions into cliques. The Weak Perfect Graph Theorem says that, despite these changes, perfectness is preserved: a graph is perfect if and only if its complement is perfect.

All graphs in this tutorial are finite and simple. A clique is a set of pairwise adjacent vertices, and an independent set is a set of pairwise nonadjacent vertices. The clique number \(\omega(G)\) is the largest size of a clique in \(G\), and the independence number \(\alpha(G)\) is the largest size of an independent set. The chromatic number \(\chi(G)\) is the least number of colors in a proper vertex coloring: adjacent vertices must receive different colors. For the graph with no vertices, set \(\omega(G)=\alpha(G)=\chi(G)=0\).

Definition: A graph \(G\) is perfect if every induced subgraph \(G[S]\), for every \(S\subseteq V(G)\), satisfies \(\chi(G[S])=\omega(G[S])\). The complement \(\overline{G}\) has vertex set \(V(G)\); two distinct vertices are adjacent in \(\overline{G}\) exactly when they are not adjacent in \(G\).

The requirement applies to every vertex subset, not just to the whole graph. An induced subgraph \(G[S]\) retains precisely the edges of \(G\) whose two endpoints belong to \(S\). The empty set is included in the definition; its induced subgraph has both parameters equal to zero.

What Complementation Does to the Parameters

Proposition: For every finite simple graph \(G\), \(\omega(\overline{G})=\alpha(G)\) and \(\alpha(\overline{G})=\omega(G)\). For every \(S\subseteq V(G)\), \(\overline{G[S]}=\overline{G}[S]\).

Proof. A set of vertices is a clique in \(\overline{G}\) precisely when every pair in it is an edge of \(\overline{G}\), which means that no pair in it is an edge of \(G\). Thus it is an independent set in \(G\), and the largest possible sizes are equal: \(\omega(\overline{G})=\alpha(G)\). Reversing the roles of \(G\) and \(\overline{G}\) gives \(\alpha(\overline{G})=\omega(G)\). For the induced-subgraph identity, take any two distinct vertices in \(S\). They are adjacent in \(\overline{G[S]}\) exactly when they are not adjacent in \(G[S]\), which holds exactly when they are not adjacent in \(G\). This is also exactly the condition for their being adjacent in \(\overline{G}[S]\). Both graphs have vertex set \(S\), so they are equal. \(\square\)

There is a related interpretation of coloring. A clique partition of \(G\) is a partition of \(V(G)\) into sets that are cliques in \(G\). Let \(q(G)\) be the minimum number of parts in such a partition, and set \(q(G)=0\) for the empty graph. Each color class in a proper coloring of \(\overline{G}\) is an independent set in \(\overline{G}\), hence a clique in \(G\). Conversely, each clique partition of \(G\) gives a proper coloring of \(\overline{G}\). Therefore \(\chi(\overline{G})=q(G)\).

Consequently, the assertion that \(\overline{G}\) is perfect can be read entirely in terms of \(G\): for every \(S\subseteq V(G)\), the minimum number of cliques partitioning \(G[S]\) must equal \(\alpha(G[S])\). This reformulation explains why the theorem is not an immediate consequence of the identity between clique number and independence number. It also involves the number of colors needed, or equivalently the minimum size of a clique partition.

The Weak Perfect Graph Theorem

Theorem (Weak Perfect Graph Theorem, Lovász): A finite simple graph \(G\) is perfect if and only if its complement \(\overline{G}\) is perfect.

This is a classical, deep theorem. Its proof is not developed here; the theorem is stated as a standard result rather than presented as if the parameter identities above proved it. Those identities do give a useful way to understand what the theorem asserts. For each \(S\), the induced subgraph \(\overline{G}[S]\) has clique number \(\alpha(G[S])\), while its chromatic number is \(q(G[S])\). Thus perfectness of \(\overline{G}\) says that \(q(G[S])=\alpha(G[S])\) for every \(S\). The theorem says this condition holds whenever \(G\) is perfect, and conversely.

The “if and only if” includes both directions. The forward direction says that perfectness of \(G\) guarantees perfectness of \(\overline{G}\). For the reverse direction, apply the same forward direction to \(\overline{G}\): its complement is \(G\), because complementing twice restores every adjacency decision. This gives perfectness of \(G\) when \(\overline{G}\) is perfect.

Worked Example: A Path and Its Complement

Let \(G\) have \(V(G)=\{1,2,3,4\}\) and \(E(G)=\{12,23,34\}\), so \(G\) is a path on four vertices. Its complement has the same vertices and includes all pairs not in \(E(G)\): \(\overline{G}\) has edge set \(\{13,14,24\}\). These edges form the path \(3-1-4-2\).

Here is a direct check of perfectness. Every induced subgraph of either path is a forest, meaning it contains no cycle. Any nonempty forest with at least one edge has clique number \(2\), since it contains an edge and contains no triangle. It has chromatic number \(2\): in each connected component, color vertices according to the parity of their distance from a fixed vertex. Each edge joins vertices at opposite parities; isolated vertices can be assigned either color. If the forest has no edges but has vertices, both its clique number and chromatic number are \(1\). The empty forest has both parameters \(0\). Since induced subgraphs of a forest are forests, this proves that both \(G\) and \(\overline{G}\) are perfect.

Check: The listed complement edges are exactly the three missing pairs among the six pairs on four vertices: \(\{12,13,14,23,24,34\}\setminus\{12,23,34\}=\{13,14,24\}\). The whole graph \(G\) has \(\omega(G)=2\) and \(\chi(G)=2\); its complement also has \(\omega(\overline{G})=2\) and \(\chi(\overline{G})=2\). The forest argument checks all induced subgraphs, not just these whole-graph values.

Worked Example: A Triangle and an Isolated Vertex

Let \(G\) have \(V(G)=\{1,2,3,4\}\) and \(E(G)=\{12,13,23\}\). Vertices \(1,2,3\) form a triangle, while vertex \(4\) is isolated. The complement has edge set \(\{14,24,34\}\), a star with center \(4\).

For any nonempty induced subgraph of \(G\), let \(r\) be the number of selected vertices from \(\{1,2,3\}\). If \(r=0\), the induced graph is a single isolated vertex, with \(\chi=\omega=1\). If \(r\geq1\), the selected triangle vertices form a clique of size \(r\), and the selected vertex \(4\), when present, is isolated. The clique number is \(r\). The clique vertices require \(r\) different colors, and the isolated vertex can reuse one of them, so the chromatic number is also \(r\). The empty induced subgraph has both parameters zero. Hence \(G\) is perfect.

Every induced subgraph of \(\overline{G}\) is a star with some of its leaves, or a graph with no edges. If at least one edge is present, its clique and chromatic numbers are both \(2\): it has an edge, and its vertices can be colored by placing the center in one color and all leaves in another. If it has no edges, the two parameters are \(1\) when it is nonempty and \(0\) when it is empty. Thus \(\overline{G}\) is perfect as well.

Check: The six pairs on four vertices are \(12,13,14,23,24,34\). Removing \(12,13,23\) leaves exactly \(14,24,34\), as claimed. On all four vertices, \(G\) has \(\omega(G)=3\) and \(\chi(G)=3\), while its complement has \(\omega(\overline{G})=2\) and \(\chi(\overline{G})=2\).

Worked Example: The Five-Cycle and Its Complement

Let \(G\) have \(V(G)=\{1,2,3,4,5\}\) and \(E(G)=\{12,23,34,45,51\}\), so \(G=C_5\). The ten pairs on these five vertices are \(12,13,14,15,23,24,25,34,35,45\). Removing the five edges of \(G\) gives \(E(\overline{G})=\{13,14,24,25,35\}\). These edges form the cycle \(1-3-5-2-4-1\).

In \(G\), no three vertices form a clique: each vertex has just two neighbors, and those two neighbors are not adjacent. Thus \(\omega(G)=2\). Two colors cannot properly color an odd cycle: colors would have to alternate around the cycle, leaving the last vertex with the same color as its neighbor. Three colors suffice; in vertex order \(1,2,3,4,5\), use colors \(A,B,A,B,C\). Each listed edge has endpoints of different colors, so \(\chi(G)=3\). Since \(\chi(G)\ne\omega(G)\), \(G\) is not perfect.

The complement is also a five-cycle. It has clique number \(2\), since the two neighbors of any vertex on a five-cycle are not adjacent. It needs at least three colors by the same odd-cycle alternation argument. Assign colors \(A,B,A,B,C\) in the cycle order \(1,3,5,2,4\); each edge of that cycle joins different colors. Therefore \(\chi(\overline{G})=3\) and \(\omega(\overline{G})=2\), so the complement is not perfect either. This example illustrates the theorem’s equivalence: both graphs fail perfectness.

Check: The complement edge list consists of the five pairs absent from \(G\). In the stated cycle order, its edges are \(13,35,52,24,41\), which are exactly \(13,35,25,24,14\). The displayed three-coloring assigns different colors to each of these five edges.

Using the Theorem Carefully

The theorem is especially useful when a complement is simpler to analyze than the original graph. One may establish perfectness for the simpler graph and then transfer the conclusion to its complement. The theorem also transfers failure: if one graph is not perfect, its complement cannot be perfect, since the “if and only if” would otherwise imply that the first graph is perfect.

Common pitfall: checking only the whole graph. The equality \(\chi(G)=\omega(G)\) by itself does not establish that \(G\) is perfect. The definition requires equality for every induced subgraph. For example, the graph \(G\) in the triangle-and-isolated-vertex example has \(\chi(G)=\omega(G)=3\), but that equality alone would not have checked all its induced subgraphs. The example is perfect only after the induced-subgraph cases are accounted for.

Common pitfall: confusing the two parameter identities. The identity \(\omega(\overline{G})=\alpha(G)\) concerns clique size, not chromatic number. In general, coloring \(\overline{G}\) requires partitioning \(G\) into cliques; it does not follow just by substituting \(\alpha(G)\) for \(\chi(\overline{G})\). The theorem is the substantive result that guarantees the relevant equalities across all induced subgraphs when \(G\) is perfect.

Check Your Understanding

Use the definitions and parameter identities above to answer these questions.

  1. For a graph with vertex set \(\{1,2,3,4\}\) and edge set \(\{12,23\}\), list the edge set of its complement.
  2. Explain why a clique in \(\overline{G}\) is an independent set in \(G\), and state the resulting identity between \(\omega(\overline{G})\) and \(\alpha(G)\).
  3. Why does checking \(\chi(G)=\omega(G)\) for the whole graph not, by itself, prove that \(G\) is perfect?
  4. Show that a graph with no edges is perfect, including the case where it has no vertices.
  5. If \(\overline{G}\) is not perfect, what does the Weak Perfect Graph Theorem imply about \(G\)?