Documentation

CslibFrontier.Foundations.Combinatorics.SimpleGraph.GreedyColoring

Greedy coloring #

A finite graph whose maximum degree is less than q has a proper q-coloring (SimpleGraph.colorable_of_maxDegree_lt). The proof colors the vertices one at a time: a vertex has fewer than q neighbors, so some color is unused among the neighbors colored so far. Hence χ(G) ≤ Δ(G) + 1 (SimpleGraph.chromaticNumber_le_maxDegree_add_one).

Main results #

theorem SimpleGraph.colorable_of_maxDegree_lt {V : Type u_1} [Fintype V] (G : SimpleGraph V) [DecidableRel G.Adj] {q : ℕ} (hq : G.maxDegree < q) :

Greedy coloring: a finite graph whose maximum degree is less than q is q-colorable.

Greedy coloring bound: χ(G) ≤ Δ(G) + 1.