Vertex covers of multigraphs #
A vertex cover of a multigraph G : Graph α β is a set of actual vertices meeting every edge:
every edge has an end in the set. Parallel edges are allowed, and a loop at v is met only by sets
containing v.
Main definitions #
Graph.IsVertexCover G C: the setCof actual vertices meets every edge ofG.
Main results #
Graph.isVertexCover_iff_forall_exists_inc: a set of actual vertices is a vertex cover exactly when every actual edge is incident with one of its vertices.Graph.isVertexCover_empty_iff: the empty set is a vertex cover exactly when there are no actual edges.
theorem
Graph.IsVertexCover.exists_mem_inc
{α : Type u}
{β : Type v}
{G : Graph α β}
{C : Set ↑G.vertexSet}
(hC : G.IsVertexCover C)
(e : ↑G.edgeSet)
:
∃ x ∈ C, G.Inc ↑e ↑x
Every actual edge is incident with a vertex of a vertex cover.
theorem
Graph.IsVertexCover.subset
{α : Type u}
{β : Type v}
{G : Graph α β}
{C D : Set ↑G.vertexSet}
(hC : G.IsVertexCover C)
(hCD : C ⊆ D)
:
G.IsVertexCover D
A superset of a vertex cover is a vertex cover.
@[simp]
The set of all actual vertices is a vertex cover.