Documentation

CslibFrontier.Foundations.Combinatorics.SimpleGraph.CommonNeighborhood

The common neighborhood of a finite vertex set #

SimpleGraph.commonNeighborhood G T consists of the vertices outside T adjacent to every vertex of T. In particular, the common neighborhood of the empty set is the whole vertex set. If T is contained in a clique S, its common neighborhood retains exactly S \ T from S.

The vertices outside T that are adjacent to every vertex in T.

@[simp]
theorem SimpleGraph.mem_commonNeighborhood {V : Type u_1} [Fintype V] [DecidableEq V] (G : SimpleGraph V) [DecidableRel G.Adj] {T : Finset V} {v : V} :
v ∈ G.commonNeighborhood T ↔ v ∉ T ∧ ∀ t ∈ T, G.Adj t v
theorem SimpleGraph.not_mem_of_mem_commonNeighborhood {V : Type u_1} [Fintype V] [DecidableEq V] (G : SimpleGraph V) [DecidableRel G.Adj] {T : Finset V} {v : V} (hv : v ∈ G.commonNeighborhood T) :
v ∉ T

No seed vertex belongs to its common neighborhood.

theorem SimpleGraph.sdiff_subset_commonNeighborhood {V : Type u_1} [Fintype V] [DecidableEq V] (G : SimpleGraph V) [DecidableRel G.Adj] {S T : Finset V} (hT : T ⊆ S) (hS : G.IsClique ↑S) :
S \ T ⊆ G.commonNeighborhood T

A seed inside a clique retains every other clique vertex in its common neighborhood.

theorem SimpleGraph.inter_commonNeighborhood_eq_sdiff {V : Type u_1} [Fintype V] [DecidableEq V] (G : SimpleGraph V) [DecidableRel G.Adj] {S T : Finset V} (hT : T ⊆ S) (hS : G.IsClique ↑S) :
S ∩ G.commonNeighborhood T = S \ T

Intersecting a clique with a seed's common neighborhood removes exactly the seed.