Skip to content

Commit 89b43ac

Browse files
committed
Modify docstring to work on examples
1 parent 42369d1 commit 89b43ac

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pydatastructs/graphs/algorithms.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1262,8 +1262,8 @@ def bipartite_coloring(graph: Graph, **kwargs) -> Tuple[bool, Dict]:
12621262
>>> graph.add_edge('v_1', 'v_2')
12631263
>>> graph.add_edge('v_2', 'v_3')
12641264
>>> 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})
12671267
12681268
References
12691269
==========
@@ -1409,7 +1409,7 @@ def maximum_matching(graph: Graph, algorithm: str, **kwargs) -> set:
14091409
>>> graph.add_edge('v_2', 'v_3')
14101410
>>> graph.add_edge('v_4', 'v_1')
14111411
>>> 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')}
14131413
14141414
References
14151415
==========
@@ -1593,8 +1593,8 @@ def maximum_matching_parallel(graph: Graph, algorithm: str, num_threads: int, **
15931593
>>> graph.add_bidirectional_edge('v_1', 'v_2')
15941594
>>> graph.add_bidirectional_edge('v_2', 'v_3')
15951595
>>> 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')}
15981598
15991599
References
16001600
==========

0 commit comments

Comments
 (0)