TIME mode

This commit is contained in:
Clement Lacau 2024-05-18 17:05:39 +02:00
parent de65f817b1
commit 1c4bc2fb00

View file

@ -74,7 +74,7 @@ public class DijkstraAlgorithm extends ShortestPathAlgorithm {
// we know its origin and destination
for (Arc arc : x.getNode().getSuccessors()) {
if (successor.getNode().equals(arc.getDestination())) {
arc_cost = arc.getLength();
arc_cost = (float) data.getCost(arc);
}
}
final float possible_path_cost = x.getCost() + arc_cost;