TIME mode
This commit is contained in:
parent
de65f817b1
commit
1c4bc2fb00
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
@ -140,7 +140,7 @@ public class DijkstraAlgorithm extends ShortestPathAlgorithm {
|
|||
|
||||
this.pathCost = labels.get(data.getDestination().getId()).getTotalCost();
|
||||
}
|
||||
return solution;
|
||||
return solution;
|
||||
}
|
||||
|
||||
public float getCostPath() {
|
||||
|
|
Loading…
Reference in a new issue