7.3.2.1. networkx.algorithms.bipartite.matching.eppstein_matching¶
-
networkx.algorithms.bipartite.matching.eppstein_matching(G)[source]¶ Returns the maximum cardinality matching of the bipartite graph G.
Parameters: G : NetworkX graph
Undirected bipartite graph
Returns: matches : dictionary
The matching is returned as a dictionary, matching, such that
matching[v] == wif node v is matched to node w. Unmatched nodes do not occur as a key in mate.See also
Notes
This function is implemented with David Eppstein’s version of the algorithm Hopcroft–Karp algorithm (see
hopcroft_karp_matching()), which originally appeared in the Python Algorithms and Data Structures library (PADS).