Deletion of edges and vertices #
This file defines the deletion of edges and vertices from a graph.
Main definitions #
restrict: the subgraph ofGrestricted to the edges inFwithout removing verticesdeleteEdges: the subgraph ofGwith the edges inFdeletedinduce: the subgraph ofGinduced by the setXof verticesdeleteVerts: the graph obtained fromGby deleting the setXof vertices
Tags #
graphs, edge deletion, vertex deletion
@[simp]
@[deprecated Graph.restrict_edgeSet_sdiff_eq_deleteEdges (since := "2026-06-03")]
theorem Graph.restrict_edgeSet_diff_eq_deleteEdges {α : Type u_1} {β : Type u_2} (G : Graph α β) (F : Set β) :
@[simp]
@[simp]
@[simp]
theorem Graph.deleteEdges_deleteEdges {α : Type u_1} {β : Type u_2} (G : Graph α β) (F₁ F₂ : Set β) :
The subgraph of G induced by a set X of vertices.
The edges are the edges of G with both ends in X.
(X is not required to be a subset of V(G) for this definition to work,
even though this is the standard use case)
Instances For
@[simp]
@[simp]