Skip to content

Commit ac84888

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 28a122b commit ac84888

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

graphs/bidirectional_search.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,11 +134,15 @@ def bidirectional_search(
134134
return None
135135

136136
# Construct path from start to intersection
137-
forward_path: list[int] = construct_path(current=intersection, parents=forward_parents)
137+
forward_path: list[int] = construct_path(
138+
current=intersection, parents=forward_parents
139+
)
138140
forward_path.reverse()
139141

140142
# Construct path from intersection to goal
141-
backward_path: list[int] = construct_path(current=backward_parents[intersection], parents=backward_parents)
143+
backward_path: list[int] = construct_path(
144+
current=backward_parents[intersection], parents=backward_parents
145+
)
142146

143147
# Return the complete path
144148
return forward_path + backward_path

0 commit comments

Comments
 (0)