Skip to main content

Graph coloring and chromatic number

Short answer

Graph coloring assigns colors to vertices so adjacent vertices get different colors. The chromatic number (chi) is the minimum number of colors needed. For example, chi(Kn)=n, chi(bipartite graphs)=2, chi(C5)=3.

Define the term graph coloring and the chromatic number of a graph.

Graph coloring

A graph coloring (vertex coloring) of a simple graph is an assignment of colors to its vertices so that no two adjacent vertices get the same color. A coloring that satisfies this rule is called proper.

Chromatic number

The chromatic number χ(G) is the smallest number of colors needed for a proper coloring of G. To show χ(G) = k, show that k colors suffice and that fewer than k colors cannot work.

Standard values

Graphχ
Kₙn
Cₙ, n even2
Cₙ, n odd3
Bipartite graph with at least one edge, tree2
Any planar graph≤ 4 (Four Color Theorem)

Also χ(G) ≤ Δ(G) + 1 (greedy coloring).

Example

Triangle K₃ with vertices a, b, c: all three are mutually adjacent, so they need 3 different colors, χ(K₃) = 3. The square C₄ (a–b–c–d–a): color a, c red and b, d blue, so χ(C₄) = 2.

Application: scheduling exams, where courses are vertices, an edge joins courses sharing a student, and colors are time slots.

✓ Answer checked by Claude Opus 5.5 (high effort)

All Discrete Structure chapter 4 questions →