mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-05 01:09:40 +08:00
clean of unnecessary checks, imports, calls (#7993)
This commit is contained in:
@ -24,7 +24,7 @@ def bfs(graph, s, t, parent):
|
||||
visited[ind] = True
|
||||
parent[ind] = u
|
||||
|
||||
return True if visited[t] else False
|
||||
return visited[t]
|
||||
|
||||
|
||||
def mincut(graph, source, sink):
|
||||
|
Reference in New Issue
Block a user