Graph products #
This file defines the box product of graphs and other product constructions. The box product of G
and H is the graph on the product of the vertices such that x and y are related iff they agree
on one component and the other one is related via either G or H. For example, the box product of
two edges is a square.
Main declarations #
SimpleGraph.boxProd: The box product.
Notation #
G □ H: The box product ofGandH.
TODO #
Define all other graph products!
Box product of simple graphs. It relates (a₁, b) and (a₂, b) if G relates a₁ and a₂,
and (a, b₁) and (a, b₂) if H relates b₁ and b₂.
Equations
Instances For
Box product of simple graphs. It relates (a₁, b) and (a₂, b) if G relates a₁ and a₂,
and (a, b₁) and (a, b₂) if H relates b₁ and b₂.
Equations
- SimpleGraph.«term_□_» = Lean.ParserDescr.trailingNode `SimpleGraph.«term_□_» 70 70 (Lean.ParserDescr.binary `andthen (Lean.ParserDescr.symbol " □ ") (Lean.ParserDescr.cat `term 71))
Instances For
Alias of SimpleGraph.neighborSet_boxProd.
The box product is commutative up to isomorphism. Equiv.prodComm as a graph isomorphism.
Equations
- G.boxProdComm H = { toEquiv := Equiv.prodComm α β, map_rel_iff' := ⋯ }
Instances For
The box product is associative up to isomorphism. Equiv.prodAssoc as a graph isomorphism.
Equations
- G.boxProdAssoc H I = { toEquiv := Equiv.prodAssoc α β γ, map_rel_iff' := ⋯ }
Instances For
The embedding of G into G □ H given by b.
Instances For
The embedding of H into G □ H given by a.
Equations
- G.boxProdRight H a = { toFun := Prod.mk a, inj' := ⋯, map_rel_iff' := ⋯ }
Instances For
Turn a walk on G into a walk on G □ H.
Equations
Instances For
Turn a walk on H into a walk on G □ H.
Equations
Instances For
Project a walk on G □ H to a walk on G by discarding the moves in the direction of H.
Equations
- One or more equations did not get rendered due to their size.
- SimpleGraph.Walk.nil.ofBoxProdLeft = SimpleGraph.Walk.nil
Instances For
Project a walk on G □ H to a walk on H by discarding the moves in the direction of G.
Equations
- One or more equations did not get rendered due to their size.
- SimpleGraph.Walk.nil.ofBoxProdRight = SimpleGraph.Walk.nil
Instances For
Alias of SimpleGraph.connected_boxProd.
Equations
- One or more equations did not get rendered due to their size.
Alias of SimpleGraph.neighborFinset_boxProd.
Alias of SimpleGraph.degree_boxProd.
Alias of SimpleGraph.reachable_boxProd.
Alias of SimpleGraph.edist_boxProd.