Documentation

Mathlib.Combinatorics.SimpleGraph.CycleGraph

Definition of cycle graphs #

This file defines and proves several fact about cycle graphs on n vertices and the cycle around the cycle graph when n ≥ 3.

Main declarations #

Cycle graph over Fin n

Equations
Instances For
    @[instance_reducible]
    Equations
    theorem SimpleGraph.cycleGraph_adj {n : ℕ} {u v : Fin (n + 2)} :
    (cycleGraph (n + 2)).Adj u v ↔ u - v = 1 ∨ v - u = 1
    theorem SimpleGraph.cycleGraph_adj' {n : ℕ} {u v : Fin n} :
    (cycleGraph n).Adj u v ↔ ↑(u - v) = 1 ∨ ↑(v - u) = 1
    theorem SimpleGraph.cycleGraph_neighborSet {n : ℕ} {v : Fin (n + 2)} :
    (cycleGraph (n + 2)).neighborSet v = {v - 1, v + 1}
    theorem SimpleGraph.cycleGraph_neighborFinset {n : ℕ} {v : Fin (n + 2)} :
    (cycleGraph (n + 2)).neighborFinset v = {v - 1, v + 1}
    theorem SimpleGraph.cycleGraph_degree_two_le {n : ℕ} {v : Fin (n + 2)} :
    (cycleGraph (n + 2)).degree v = {v - 1, v + 1}.card
    theorem SimpleGraph.cycleGraph_degree_three_le {n : ℕ} {v : Fin (n + 3)} :
    (cycleGraph (n + 3)).degree v = 2
    theorem SimpleGraph.cycleGraph.getVert_cycle {n m : ℕ} (hm : m ≤ n + 3) :
    (cycle n).getVert m = ⟨(n + 3 - m) % (n + 3), ⋯⟩
    theorem SimpleGraph.cycleGraph_isContained_iff {V : Type u_1} {G : SimpleGraph V} {n : ℕ} (hn : 2 < n) :
    (cycleGraph n).IsContained G ↔ ∃ (v : V) (p : G.Walk v v), p.IsCycle ∧ p.length = n