Girth of a simple graph #
This file defines the girth and the extended girth of a simple graph as the length of its smallest
cycle, they give 0 or ∞ respectively if the graph is acyclic.
The extended girth of a simple graph is the length of its smallest cycle, or ∞ if the graph is
acyclic.
Instances For
theorem SimpleGraph.Walk.IsCycle.egirth_le_length {α : Type u_1} {G : SimpleGraph α} {a : α} {w : G.Walk a a} (h : w.IsCycle) :
@[deprecated SimpleGraph.Walk.IsCycle.egirth_le_length (since := "2026-07-05")]
theorem SimpleGraph.egirth_le_length {α : Type u_1} {G : SimpleGraph α} {a : α} {w : G.Walk a a} (h : w.IsCycle) :
theorem SimpleGraph.Walk.IsCircuit.egirth_le_length {α : Type u_1} {G : SimpleGraph α} {a : α} {w : G.Walk a a} (hwc : w.IsCircuit) :
@[simp]
Alias of the reverse direction of SimpleGraph.egirth_eq_top.
theorem SimpleGraph.IsContained.egirth_le {α : Type u_1} {β : Type u_2} {G : SimpleGraph α} {G' : SimpleGraph β} (h : G.IsContained G') :
theorem SimpleGraph.Iso.egirth_eq {α : Type u_1} {β : Type u_2} {G : SimpleGraph α} {G' : SimpleGraph β} (f : G ≃g G') :
The girth of a simple graph is the length of its smallest cycle, or junk value 0 if the graph is
acyclic.
Instances For
theorem SimpleGraph.Walk.IsCycle.girth_le_length {α : Type u_1} {G : SimpleGraph α} {a : α} {w : G.Walk a a} (h : w.IsCycle) :
@[deprecated SimpleGraph.Walk.IsCycle.girth_le_length (since := "2026-07-05")]
theorem SimpleGraph.girth_le_length {α : Type u_1} {G : SimpleGraph α} {a : α} {w : G.Walk a a} (h : w.IsCycle) :
Alias of SimpleGraph.Walk.IsCycle.girth_le_length.
Alias of the reverse direction of SimpleGraph.girth_eq_zero.
theorem SimpleGraph.girth_anti {α : Type u_1} {G G' : SimpleGraph α} (hab : G ≤ G') (h : ¬G.IsAcyclic) :
theorem SimpleGraph.Walk.IsCircuit.girth_le_length {α : Type u_1} {G : SimpleGraph α} {a : α} {w : G.Walk a a} (hwc : w.IsCircuit) :
theorem SimpleGraph.IsContained.girth_le {α : Type u_1} {β : Type u_2} {G : SimpleGraph α} {G' : SimpleGraph β} (h : G.IsContained G') (hG : ¬G.IsAcyclic) :
theorem SimpleGraph.Iso.girth_eq {α : Type u_1} {β : Type u_2} {G : SimpleGraph α} {G' : SimpleGraph β} (f : G ≃g G') :