change
This commit is contained in:
parent
f5d21db4aa
commit
45f43559ff
2 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@ public class DijkstraAlgorithm extends ShortestPathAlgorithm {
|
|||
arcs.add(suivant);
|
||||
l.setMarque(true);
|
||||
}
|
||||
l.setCost(Math.min(l.getCost(), x.getCost()+suivant.getLength()));
|
||||
l.setCost(Math.min(l.getCost(), x.getCost()+data.getCost(suivant)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Binary file not shown.
Loading…
Reference in a new issue