networkx.algorithms.matching.is_maximal_matching¶
-
is_maximal_matching(G, matching)[source]¶ Decides whether the given set or dictionary represents a valid maximal matching in
G.A maximal matching in a graph is a matching in which adding any edge would cause the set to no longer be a valid matching.
- Parameters
- Returns
Whether the given set or dictionary represents a valid maximal matching in the graph.
- Return type