@@ -1262,8 +1262,8 @@ def bipartite_coloring(graph: Graph, **kwargs) -> Tuple[bool, Dict]:
1262
1262
>>> graph.add_edge('v_1', 'v_2')
1263
1263
>>> graph.add_edge('v_2', 'v_3')
1264
1264
>>> graph.add_edge('v_4', 'v_1')
1265
- >>> bipartite_coloring(graph)
1266
- >>> (True, {'v_1': 0, 'v_2': 1, 'v_4': 1, 'v_3': 0})
1265
+ >>> bipartite_coloring(graph, make_undirected=True )
1266
+ (True, {'v_1': 0, 'v_2': 1, 'v_4': 1, 'v_3': 0})
1267
1267
1268
1268
References
1269
1269
==========
@@ -1409,7 +1409,7 @@ def maximum_matching(graph: Graph, algorithm: str, **kwargs) -> set:
1409
1409
>>> graph.add_edge('v_2', 'v_3')
1410
1410
>>> graph.add_edge('v_4', 'v_1')
1411
1411
>>> maximum_matching(graph, 'hopcroft_karp', make_undirected=True)
1412
- >>> {('v_1', 'v_4'), ('v_3', 'v_2')}
1412
+ {('v_1', 'v_4'), ('v_3', 'v_2')}
1413
1413
1414
1414
References
1415
1415
==========
@@ -1593,8 +1593,8 @@ def maximum_matching_parallel(graph: Graph, algorithm: str, num_threads: int, **
1593
1593
>>> graph.add_bidirectional_edge('v_1', 'v_2')
1594
1594
>>> graph.add_bidirectional_edge('v_2', 'v_3')
1595
1595
>>> graph.add_bidirectional_edge('v_4', 'v_1')
1596
- >>> maximum_matching_parallel(graph, 'hopcroft_karp', 1, make_undirected=True )
1597
- >>> {('v_1', 'v_4'), ('v_3', 'v_2')}
1596
+ >>> maximum_matching_parallel(graph, 'hopcroft_karp', 1)
1597
+ {('v_1', 'v_4'), ('v_3', 'v_2')}
1598
1598
1599
1599
References
1600
1600
==========
0 commit comments