Star Graphs #
Main definitions #
SimpleGraph.starGraph ris the star graph on V centered at r. Every non-center vertex is adjacent to r.
Main statements #
SimpleGraph.isTree_starGraphproves the star graph is a tree.
Tags #
star graph
The star graph on V centered at r: every non-center vertex is adjacent to r.
Equations
- SimpleGraph.starGraph r = SimpleGraph.fromRel fun (v x : V) => v = r
Instances For
@[implicit_reducible]
instance
SimpleGraph.instDecidableRelAdjStarGraphOfDecidableEq
{V : Type u_1}
[DecidableEq V]
(r : V)
:
DecidableRel (starGraph r).Adj
theorem
SimpleGraph.degree_starGraph_of_ne_center
{V : Type u_1}
[Fintype V]
[DecidableEq V]
{r v : V}
(h : v ≠ r)
:
Every non-center vertex of a starGraph has degree one.
The center vertex of a starGraph has degree (card V) - 1.