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
    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
    @[deprecated SimpleGraph.cycleGraph.cycle (since := "2026-02-15")]

    Alias of SimpleGraph.cycleGraph.cycle.


    The Eulerian cycle of cycleGraph (n + 3)

    Equations
    Instances For
      @[deprecated SimpleGraph.cycleGraph.length_cycle (since := "2026-02-15")]

      Alias of SimpleGraph.cycleGraph.length_cycle.

      theorem SimpleGraph.cycleGraph.getVert_cycle {n m : } (hm : m n + 3) :
      (cycle n).getVert m = (n + 3 - m) % (n + 3),