GraphTheory
MatchingNumber
size of maximum matching
MaximumMatching
find a maximum matching
Calling Sequence
Parameters
Description
Examples
References
Compatibility
MatchingNumber(G)
MaximumMatching(G)
G
-
graph
MaximumMatching(G) returns a set of edges corresponding to a matching of maximum size for the given graph G.
MatchingNumber(G) returns an integer corresponding to the size of a maximum matching for G.
A matching of G, also called an independent edge set, is a subset of the edges of G with the property that no edges in the matching share a common vertex. A matching in which every vertex of G appears in some edge is called a perfect matching.
The strategy employed is the blossom algorithm (see Edmonds, 1965).
Produce a perfect matching for the hypercube graph.
Produce a perfect matching for the soccer ball graph.
Edmonds, Jack. "Paths, trees, and flowers." Canad. J. Math., 17(1965), 449-467. doi:10.4153/CJM-1965-045-4
The GraphTheory[MatchingNumber] and GraphTheory[MaximumMatching] commands were introduced in Maple 2016.
For more information on Maple 2016 changes, see Updates in Maple 2016.
See Also
BipartiteMatching
MaximumIndependentSet
Download Help Document