Documentation

Atlas.AnAlgorithmistsToolkit.code.DisjointUnion

@[implicit_reducible]
instance DisjointUnion.instDecidableRelSumAdj {V₁ : Type u_1} {V₂ : Type u_2} (G : SimpleGraph V₁) (H : SimpleGraph V₂) [DecidableRel G.Adj] [DecidableRel H.Adj] :
theorem DisjointUnion.neighborFinset_sum_inl {V₁ : Type u_1} {V₂ : Type u_2} [Fintype V₁] [Fintype V₂] (G : SimpleGraph V₁) (H : SimpleGraph V₂) [DecidableRel G.Adj] [DecidableRel H.Adj] (v : V₁) :
(G ⊕g H).neighborFinset (Sum.inl v) = Finset.map { toFun := Sum.inl, inj' := } (G.neighborFinset v)
theorem DisjointUnion.neighborFinset_sum_inr {V₁ : Type u_1} {V₂ : Type u_2} [Fintype V₁] [Fintype V₂] (G : SimpleGraph V₁) (H : SimpleGraph V₂) [DecidableRel G.Adj] [DecidableRel H.Adj] (w : V₂) :
(G ⊕g H).neighborFinset (Sum.inr w) = Finset.map { toFun := Sum.inr, inj' := } (H.neighborFinset w)
theorem DisjointUnion.degree_sum_inl {V₁ : Type u_1} {V₂ : Type u_2} [Fintype V₁] [Fintype V₂] (G : SimpleGraph V₁) (H : SimpleGraph V₂) [DecidableRel G.Adj] [DecidableRel H.Adj] (v : V₁) :
(G ⊕g H).degree (Sum.inl v) = G.degree v
theorem DisjointUnion.degree_sum_inr {V₁ : Type u_1} {V₂ : Type u_2} [Fintype V₁] [Fintype V₂] (G : SimpleGraph V₁) (H : SimpleGraph V₂) [DecidableRel G.Adj] [DecidableRel H.Adj] (w : V₂) :
(G ⊕g H).degree (Sum.inr w) = H.degree w