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.
Equations
- G.egirth = ⨅ (a : α), ⨅ (w : G.Walk a a), ⨅ (_ : w.IsCycle), ↑w.length
Instances For
@[simp]
@[simp]
Alias of the reverse direction of SimpleGraph.egirth_eq_top
.
The girth of a simple graph is the length of its smallest cycle, or junk value 0
if the graph is
acyclic.
Equations
- G.girth = G.egirth.toNat
Instances For
theorem
SimpleGraph.three_le_girth
{α : Type u_1}
{G : SimpleGraph α}
(hG : ¬G.IsAcyclic)
:
3 ≤ G.girth
theorem
SimpleGraph.IsAcyclic.girth_eq_zero
{α : Type u_1}
{G : SimpleGraph α}
:
G.IsAcyclic → G.girth = 0
Alias of the reverse direction of SimpleGraph.girth_eq_zero
.
theorem
SimpleGraph.girth_anti
{α : Type u_1}
{G : SimpleGraph α}
{G' : SimpleGraph α}
(hab : G ≤ G')
(h : ¬G.IsAcyclic)
:
G'.girth ≤ G.girth