Skip to content

Commit 4b771c6

Browse files
committed
Code Cleanup
1 parent c8a7506 commit 4b771c6

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

pydatastructs/graphs/algorithms.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1187,16 +1187,11 @@ def _max_flow_ford_fulkerson_(graph: Graph, source, sink):
11871187

11881188
m_flow = 0
11891189
flow_passed = {}
1190-
1191-
# Add residual edges to the graph.
1192-
print(graph.neighbors('a'))
11931190

11941191
while True:
1195-
# Use a dictionary for visited nodes. Reset for each new DFS call.
11961192
visited = {}
11971193
new_flow = _dfs_max_flow(graph_copy, source, sink, flow_passed, visited, float('inf'))
11981194

1199-
# If no augmenting path is found, exit the loop.
12001195
if new_flow == 0:
12011196
break
12021197

0 commit comments

Comments
 (0)