GraphTheory
MinimumVertexCover
find minimum vertex cover
VertexCoverNumber
Calling Sequence
Parameters
Description
Definition
Examples
Compatibility
MinimumVertexCover(G)
MinimumVertexCover(G, opt)
VertexCoverNumber(G)
VertexCoverNumber(G, opt)
G
-
graph
opt
(optional) equation of the form method = m, where m is exact, greedy, or sat.
MinimumVertexCover returns a list of vertices which comprise a minimum vertex cover.
VertexCoverNumber returns the number of vertices in a minimum vertex cover of the graph G.
A vertex cover of a graph G is a subset S of the vertices of G such that every edge in G is incident to some member of S.
with⁡GraphTheory:
G≔GraphComplement⁡CompleteGraph⁡3,4
G≔Graph 1: an undirected graph with 7 vertices and 9 edge(s)
DrawGraph⁡G
VertexCoverNumber⁡G
5
MinimumVertexCover⁡G
2,3,5,6,7
The GraphTheory[MinimumVertexCover] and GraphTheory[VertexCoverNumber] commands were introduced in Maple 2019.
For more information on Maple 2019 changes, see Updates in Maple 2019.
See Also
FindVertexCover
IndependenceNumber
MaximumIndependentSet
Download Help Document