Skip to content

Commit 81cee70

Browse files
committed
[web] fix path resolution
1 parent 22c3dfc commit 81cee70

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

web/src/bidijkstra.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,13 @@ impl Dijkstra {
212212
self.resolve_edge(*next, &mut path, is_upwards, edges);
213213
}
214214
}
215-
_ => path.push(edge),
215+
_ => {
216+
if is_upwards {
217+
path.push(edges[edge].source)
218+
} else {
219+
path.push(edges[edge].target)
220+
}
221+
}
216222
}
217223
}
218224

0 commit comments

Comments
 (0)