networkx.algorithms.matching.is_matching¶
-
is_matching(G, matching)[source]¶ Decides whether the given set or dictionary represents a valid matching in
G.A matching in a graph is a set of edges in which no two distinct edges share a common endpoint.
- Parameters
- Returns
Whether the given set or dictionary represents a valid matching in the graph.
- Return type