Skip to content

Commit b1b970b

Browse files
committed
fix: import ___location
1 parent 15ae8c4 commit b1b970b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

graphs/breadth_first_search_shortest_path_2.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
python bfs_shortest_path.py
66
"""
77

8+
from collections import deque
9+
810
demo_graph = {
911
"A": ["B", "C", "E"],
1012
"B": ["A", "D", "E"],
@@ -15,8 +17,6 @@
1517
"G": ["C"],
1618
}
1719

18-
from collections import deque
19-
2020

2121
def bfs_shortest_path(graph: dict, start, goal) -> list[str]:
2222
"""Find shortest path between `start` and `goal` nodes.

0 commit comments

Comments
 (0)