networking_flow

This commit is contained in:
Sichen Liu 2018-03-08 15:53:10 -05:00
parent 2f53847247
commit e3a03c559e
2 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ def BFS(graph, s, t, parent):
parent[ind] = u
return True if visited[t] else False
def FordFulkerson(graph, source, sink):
# This array is filled by BFS and to store path
parent = [-1]*(len(graph))

View File

@ -16,7 +16,7 @@ def BFS(graph, s, t, parent):
parent[ind] = u
return True if visited[t] else False
def mincut(graph, source, sink):
# This array is filled by BFS and to store path
parent = [-1]*(len(graph))