definition
No public endorsements yet.
Loading review…
Sign in with ORCIDConcept map
Definition
A star has a centre adjacent to every other vertex and has no edges between two non-central vertices.
Lean source view on GitHub
| 1 | import Mathlib.Combinatorics.SimpleGraph.UniversalVerts |
| 2 | |
| 3 | /-! |
| 4 | --- |
| 5 | title: Stars |
| 6 | type: definition |
| 7 | --- |
| 8 | A star has a centre adjacent to every other vertex and has no edges between |
| 9 | two non-central vertices. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | |
| 14 | namespace Lax68.Stars |
| 15 | |
| 16 | def HasStarShape {V : Type*} (G : SimpleGraph V) : Prop := |
| 17 | ∃ centre : V, |
| 18 | centre ∈ G.universalVerts ∧ |
| 19 | ∀ ⦃u v⦄, G.Adj u v → u = centre ∨ v = centre |
| 20 | |
| 21 | def IsStar {V : Type*} (G : SimpleGraph V) : Prop := |
| 22 | HasStarShape G |
| 23 | |
| 24 | end Lax68.Stars |
| 25 |
Builds on
none
From Mathlib
Community review
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above; your ORCID profile must share a public name.
0 comments