Concrete colorings of common graphs #
This file defines colorings for some common graphs.
Main declarations #
SimpleGraph.pathGraph.bicoloring: Bicoloring of a path graph.
theorem
SimpleGraph.chromaticNumber_le_two_iff_isBipartite
{V : Type u_1}
{G : SimpleGraph V}
:
G.chromaticNumber โค 2 โ G.IsBipartite
theorem
SimpleGraph.chromaticNumber_eq_two_iff
{V : Type u_1}
{G : SimpleGraph V}
:
G.chromaticNumber = 2 โ G.IsBipartite โง G โ โฅ
Bicoloring of a path graph
Instances For
Embedding of pathGraph 2 into the first two elements of pathGraph n for 2 โค n
Instances For
theorem
SimpleGraph.chromaticNumber_pathGraph
(n : โ)
(h : 2 โค n)
:
(pathGraph n).chromaticNumber = 2
theorem
SimpleGraph.Coloring.even_length_iff_congr
{ฮฑ : Type u_1}
{G : SimpleGraph ฮฑ}
(c : G.Coloring Bool)
{u v : ฮฑ}
(p : G.Walk u v)
:
theorem
SimpleGraph.Coloring.odd_length_iff_not_congr
{ฮฑ : Type u_1}
{G : SimpleGraph ฮฑ}
(c : G.Coloring Bool)
{u v : ฮฑ}
(p : G.Walk u v)
:
theorem
SimpleGraph.Walk.three_le_chromaticNumber_of_odd_loop
{ฮฑ : Type u_1}
{G : SimpleGraph ฮฑ}
{u : ฮฑ}
(p : G.Walk u u)
(hOdd : Odd p.length)
:
Bicoloring of a cycle graph of even size
Instances For
theorem
SimpleGraph.chromaticNumber_cycleGraph_of_even
(n : โ)
(h : 2 โค n)
(hEven : Even n)
:
(cycleGraph n).chromaticNumber = 2
Tricoloring of a cycle graph
Instances For
theorem
SimpleGraph.chromaticNumber_cycleGraph_of_odd
(n : โ)
(h : 2 โค n)
(hOdd : Odd n)
:
(cycleGraph n).chromaticNumber = 3
def
SimpleGraph.Coloring.completeEquipartiteGraph
{r t : โ}
:
(SimpleGraph.completeEquipartiteGraph r t).Coloring (Fin r)
The injection (xโ, xโ) โฆ xโ is always an r-coloring of a completeEquipartiteGraph r ยท.
Instances For
theorem
SimpleGraph.completeEquipartiteGraph_colorable
{r t : โ}
:
(completeEquipartiteGraph r t).Colorable r
The completeEquipartiteGraph r t is always r-colorable.