Complete Multipartite Graphs #
A graph is complete multipartite iff non-adjacency is transitive.
Main declarations #
SimpleGraph.IsCompleteMultipartite
: predicate for a graph to be complete-multi-partite.SimpleGraph.IsCompleteMultipartite.setoid
: theSetoid
given by non-adjacency.SimpleGraph.IsCompleteMultipartite.iso
: the graph isomorphism from a graph thatIsCompleteMultipartite
to the correspondingcompleteMultipartiteGraph
.SimpleGraph.IsPathGraph3Compl
: predicate for three vertices to be a witness to non-complete-multi-partite-ness of a graph G. (The name refers to the fact that the three vertices form the complement ofpathGraph 3
.)See also:
Mathlib/Combinatorics/SimpleGraph/FiveWheelLike.lean
colorable_iff_isCompleteMultipartite_of_maximal_cliqueFree
a maximallyr + 1
- cliquefree graph isr
-colorable iff it is complete-multipartite.
The setoid given by non-adjacency
Equations
Instances For
The graph isomorphism from a graph G
that IsCompleteMultipartite
to the corresponding
completeMultipartiteGraph
(see also isCompleteMultipartite_iff
)
Equations
Instances For
The vertices v, w₁, w₂
form an IsPathGraph3Compl
in G
iff w₁w₂
is the only edge present
between these three vertices. It is a witness to the non-complete-multipartite-ness of G
(see
not_isCompleteMultipartite_iff_exists_isPathGraph3Compl
). This structure is an explicit way of
saying that the induced graph on {v, w₁, w₂}
is the complement of P3
.
- adj : G.Adj w₁ w₂
Instances For
Any IsPathGraph3Compl
in G
gives rise to a graph embedding of the complement of the path graph
Equations
Instances For
Embedding of (pathGraph 3)ᶜ
into G
that is not complete-multipartite.