c-closed graphs
Lax560391.CClosedGraphs · concepts/Lax560391/CClosedGraphs.lean · lax-560391
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Definition
A graph is c-closed if every pair of distinct nonadjacent vertices has fewer than c common neighbors. The value c may be zero; exactly the complete graphs are 0-closed.
Concept map
Lean source view on GitHub
| 1 | import Mathlib.Combinatorics.SimpleGraph.Finite |
| 2 | import Mathlib.Data.Set.Card |
| 3 | |
| 4 | /-! |
| 5 | --- |
| 6 | title: c-closed graphs |
| 7 | type: definition |
| 8 | --- |
| 9 | A graph is c-closed if every pair of distinct nonadjacent vertices has |
| 10 | fewer than c common neighbors. The value c may be zero; exactly the |
| 11 | complete graphs are 0-closed. |
| 12 | -/ |
| 13 | |
| 14 | namespace Lax560391.CClosedGraphs |
| 15 | |
| 16 | def IsCClosed {V : Type} [Fintype V] [DecidableEq V] |
| 17 | (G : SimpleGraph V) (c : ℕ) : Prop := |
| 18 | ∀ u v : V, u ≠ v → ¬G.Adj u v → |
| 19 | {w : V | G.Adj u w ∧ G.Adj v w}.ncard < c |
| 20 | |
| 21 | end Lax560391.CClosedGraphs |
| 22 |
Builds on
none
Used by
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments