aryagraph.algorithms.matching.is_matching#
- aryagraph.algorithms.matching.is_matching(g: Graph, matching: Mapping[Hashable, Hashable] | Iterable[tuple[Hashable, Hashable]]) bool[source]#
True when matching (a dict
{u: v}or a collection of edges) is a matching of g.Every pair must be an edge of g (no self-loop) and no node may appear twice. Nodes missing from g raise
NodeNotFound.