nocad.matching.all_maximum_matchings#

nocad.matching.all_maximum_matchings(adj, limit=10000)[source]#

Enumerate the maximum matchings of a small network (for teaching and tests).

Backtracking over end nodes; stops after limit matchings. Use only for networks with a few dozen edges.

Examples

>>> len(all_maximum_matchings([[0, 1, 1], [0, 0, 0], [0, 0, 0]]))
2