Definition of circulant graphs #
This file defines and proves several fact about circulant graphs.
A circulant graph over type G with jumps s : Set G is a graph in which two vertices u and v
are adjacent if and only if u - v ∈ s or v - u ∈ s. The elements of s are called jumps.
Main declarations #
SimpleGraph.circulantGraph s: the circulant graph overGwith jumpss.SimpleGraph.cycleGraph n: the cycle graph overFin n.
Circulant graph over additive group G with jumps s
Instances For
@[simp]
theorem
SimpleGraph.circulantGraph_adj
{G : Type u_1}
[AddGroup G]
(s : Set G)
(a b : G)
:
(circulantGraph s).Adj a b = (¬a = b ∧ (a - b ∈ s ∨ b - a ∈ s))
theorem
SimpleGraph.circulantGraph_eq_erase_zero
{G : Type u_1}
[AddGroup G]
(s : Set G)
:
circulantGraph s = circulantGraph (s \ {0})
theorem
SimpleGraph.circulantGraph_eq_symm
{G : Type u_1}
[AddGroup G]
(s : Set G)
:
circulantGraph s = circulantGraph (s ∪ -s)
@[implicit_reducible]
instance
SimpleGraph.instDecidableRelAdjCirculantGraphOfDecidableEqOfDecidablePredMemSet
{G : Type u_1}
[AddGroup G]
(s : Set G)
[DecidableEq G]
[DecidablePred fun (x : G) => x ∈ s]
:
DecidableRel (circulantGraph s).Adj
theorem
SimpleGraph.circulantGraph_adj_translate
{G : Type u_1}
[AddGroup G]
{s : Set G}
{u v d : G}
:
(circulantGraph s).Adj (u + d) (v + d) ↔ (circulantGraph s).Adj u v
Cycle graph over Fin n
Instances For
@[implicit_reducible]
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
The Eulerian cycle of cycleGraph (n + 3)
Instances For
@[deprecated SimpleGraph.cycleGraph.cycle (since := "2026-02-15")]
Alias of SimpleGraph.cycleGraph.cycle.
The Eulerian cycle of cycleGraph (n + 3)
Instances For
@[deprecated SimpleGraph.cycleGraph.length_cycle (since := "2026-02-15")]
Alias of SimpleGraph.cycleGraph.length_cycle.