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
@[instance_reducible]
instance SimpleGraph.instDecidableRelAdjStarGraphOfDecidableEq {V : Type u_1} [DecidableEq V] (r : V) :
DecidableRel (starGraph r).Adj
@[simp]
Bicoloring of a star graph
Equations
Instances For
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.
theorem SimpleGraph.eq_starGraph_of_isUniversal_of_cliqueFree_three {V : Type u_1} {G : SimpleGraph V} {v : V} (hv : G.IsUniversal v) (h3 : G.CliqueFree 3) :
theorem SimpleGraph.IsUniversal.isAcyclic_iff_cliqueFree_three {V : Type u_1} {G : SimpleGraph V} {v : V} (hv : G.IsUniversal v) :