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 #
SimpleGraph.colorable_of_maxDegree_lt: a graph of maximum degree less thanqisq-colorable.SimpleGraph.chromaticNumber_le_maxDegree_add_one:χ(G) ≤ Δ(G) + 1.
theorem SimpleGraph.colorable_of_maxDegree_lt {V : Type u_1} [Fintype V] (G : SimpleGraph V) [DecidableRel G.Adj] {q : ℕ} (hq : G.maxDegree < q) :
G.Colorable q
Greedy coloring: a finite graph whose maximum degree is less than q is
q-colorable.
theorem SimpleGraph.chromaticNumber_le_maxDegree_add_one {V : Type u_1} [Fintype V] (G : SimpleGraph V) [DecidableRel G.Adj] :
Greedy coloring bound: χ(G) ≤ Δ(G) + 1.