Documentation

Mathlib.Combinatorics.SimpleGraph.Girth

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.

noncomputable def SimpleGraph.egirth {α : Type u_1} (G : SimpleGraph α) :

The extended girth of a simple graph is the length of its smallest cycle, or if the graph is acyclic.

Equations
Instances For
    @[simp]
    theorem SimpleGraph.le_egirth {α : Type u_1} {G : SimpleGraph α} {n : ℕ∞} :
    n G.egirth ∀ (a : α) (w : G.Walk a a), w.IsCyclen w.length
    @[simp]

    Alias of the reverse direction of SimpleGraph.egirth_eq_top.

    theorem SimpleGraph.exists_egirth_eq_length {α : Type u_1} {G : SimpleGraph α} :
    (∃ (a : α) (w : G.Walk a a), w.IsCycle G.egirth = w.length) ¬G.IsAcyclic
    @[simp]
    noncomputable def SimpleGraph.girth {α : Type u_1} (G : SimpleGraph α) :

    The girth of a simple graph is the length of its smallest cycle, or junk value 0 if the graph is acyclic.

    Equations
    Instances For
      theorem SimpleGraph.three_le_girth {α : Type u_1} {G : SimpleGraph α} (hG : ¬G.IsAcyclic) :
      theorem SimpleGraph.IsAcyclic.girth_eq_zero {α : Type u_1} {G : SimpleGraph α} :
      G.IsAcyclicG.girth = 0

      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.exists_girth_eq_length {α : Type u_1} {G : SimpleGraph α} :
      (∃ (a : α) (w : G.Walk a a), w.IsCycle G.girth = w.length) ¬G.IsAcyclic
      @[simp]
      theorem SimpleGraph.girth_bot {α : Type u_1} :