File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -134,11 +134,15 @@ def bidirectional_search(
134
134
return None
135
135
136
136
# 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
+ )
138
140
forward_path .reverse ()
139
141
140
142
# 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
+ )
142
146
143
147
# Return the complete path
144
148
return forward_path + backward_path
You can’t perform that action at this time.
0 commit comments