Find a maximal cardinality matching in the graph.
A matching is a subset of edges in which no node occurs more than once. The cardinality of a matching is the number of matched edges.
Parameters : | G : NetworkX graph
|
---|---|
Returns : | matching : set
|
Notes
The algorithm greedily selects a maximal matching M of the graph G (i.e. no superset of M exists). It runs in time.