dwave_networkx.algorithms.matching.is_matching

is_matching(edges)[source]

Determines whether the given set of edges is a matching.

A matching is a subset of edges in which no node occurs more than once.

Parameters:edges (iterable) – A iterable of edges.
Returns:is_matching – True if the given edges are a matching.
Return type:bool