Tighten up psf/black and flake8 (#2024)
* Tighten up psf/black and flake8
* Fix some tests
* Fix some E741
* Fix some E741
* updating DIRECTORY.md
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
This commit is contained in:
@@ -16,7 +16,7 @@ def BFS(graph, s, t, parent):
|
||||
while queue:
|
||||
u = queue.pop(0)
|
||||
for ind in range(len(graph[u])):
|
||||
if visited[ind] == False and graph[u][ind] > 0:
|
||||
if visited[ind] is False and graph[u][ind] > 0:
|
||||
queue.append(ind)
|
||||
visited[ind] = True
|
||||
parent[ind] = u
|
||||
|
||||
@@ -19,7 +19,7 @@ def BFS(graph, s, t, parent):
|
||||
while queue:
|
||||
u = queue.pop(0)
|
||||
for ind in range(len(graph[u])):
|
||||
if visited[ind] == False and graph[u][ind] > 0:
|
||||
if visited[ind] is False and graph[u][ind] > 0:
|
||||
queue.append(ind)
|
||||
visited[ind] = True
|
||||
parent[ind] = u
|
||||
|
||||
Reference in New Issue
Block a user