Skip to content

Commit 483c50f

Browse files
Update check_bipatrite.py
1 parent 541eec8 commit 483c50f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graphs/check_bipatrite.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def is_bipartite_bfs(graph: defaultdict[int, list[int]]) -> bool:
153153
KeyError: 'b'
154154
"""
155155
visited: defaultdict[int, int] = defaultdict(lambda: -1)
156-
for node in list(graph):
156+
for node in graph:
157157
if visited[node] == -1:
158158
queue: deque[int] = deque()
159159
queue.append(node)

0 commit comments

Comments
 (0)