@@ -1459,8 +1459,8 @@ def maximum_matching(graph: Graph, algorithm: str, **kwargs) -> set:
14591459 >>> graph.add_edge('v_1', 'v_2')
14601460 >>> graph.add_edge('v_2', 'v_3')
14611461 >>> graph.add_edge('v_4', 'v_1')
1462- >>> maximum_matching(graph, 'hopcroft_karp', make_undirected=True)
1463- {('v_3 ', 'v_2 '), ('v_1 ', 'v_4')}
1462+ >>> sorted( maximum_matching(graph, 'hopcroft_karp', make_undirected=True) )
1463+ [('v_1 ', 'v_4 '), ('v_3 ', 'v_2')]
14641464
14651465 References
14661466 ==========
@@ -1644,8 +1644,8 @@ def maximum_matching_parallel(graph: Graph, algorithm: str, num_threads: int, **
16441644 >>> graph.add_bidirectional_edge('v_1', 'v_2')
16451645 >>> graph.add_bidirectional_edge('v_2', 'v_3')
16461646 >>> graph.add_bidirectional_edge('v_4', 'v_1')
1647- >>> maximum_matching_parallel(graph, 'hopcroft_karp', 1)
1648- {('v_3 ', 'v_2 '), ('v_1 ', 'v_4')}
1647+ >>> sorted( maximum_matching_parallel(graph, 'hopcroft_karp', 1) )
1648+ [('v_1 ', 'v_4 '), ('v_3 ', 'v_2')]
16491649
16501650
16511651 References
0 commit comments