The Hasse diagram as a graph #
This file defines the Hasse diagram of an order (graph of CovBy, the covering relation) and the
path graph on n vertices.
Main declarations #
SimpleGraph.hasse: Hasse diagram of an order.SimpleGraph.pathGraph: Path graph onnvertices.
The Hasse diagram of an order as a simple graph. The graph of the covering relation.
Instances For
@[simp]
αᵒᵈ and α have the same Hasse diagram.
Instances For
@[simp]
theorem
SimpleGraph.hasseDualIso_apply
{α : Type u_1}
[Preorder α]
(a : αᵒᵈ)
:
hasseDualIso a = OrderDual.ofDual a
@[simp]
theorem
SimpleGraph.hasseDualIso_symm_apply
{α : Type u_1}
[Preorder α]
(a : α)
:
hasseDualIso.symm a = OrderDual.toDual a
@[simp]
theorem
SimpleGraph.hasse_preconnected_of_succ
(α : Type u_1)
[LinearOrder α]
[SuccOrder α]
[IsSuccArchimedean α]
:
(hasse α).Preconnected
theorem
SimpleGraph.hasse_preconnected_of_pred
(α : Type u_1)
[LinearOrder α]
[PredOrder α]
[IsPredArchimedean α]
:
(hasse α).Preconnected
The path graph on n vertices.
Instances For
def
SimpleGraph.Walk.pathGraphHomToSubgraph
{V : Type u_3}
{G : SimpleGraph V}
{u v : V}
(w : G.Walk u v)
:
The subgraph of a walk contains the path graph with the same number of vertices
Instances For
A walk induces a homomorphism from a path graph to the graph
Instances For
def
SimpleGraph.Walk.IsPath.pathGraphIsoToSubgraph
{V : Type u_3}
[DecidableEq V]
{G : SimpleGraph V}
{u v : V}
{w : G.Walk u v}
(hw : w.IsPath)
:
The subgraph of a path is isomorphic to the path graph with the same number of vertices
Instances For
def
SimpleGraph.Walk.IsPath.pathGraphCopy
{V : Type u_3}
[DecidableEq V]
{G : SimpleGraph V}
{u v : V}
{w : G.Walk u v}
(hw : w.IsPath)
:
A path induces an injective homomorphism from a path graph to the graph
Instances For
theorem
SimpleGraph.Walk.IsPath.isContained_pathGraph
{V : Type u_3}
{G : SimpleGraph V}
{u v : V}
{w : G.Walk u v}
(hw : w.IsPath)
:
(pathGraph (w.length + 1)).IsContained G