Dijkstra Finale
This commit is contained in:
commit
3241ca915a
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ public class DijkstraAlgorithm extends ShortestPathAlgorithm {
|
|||
x.setMarque(true);
|
||||
Tas.deleteMin();
|
||||
if(i ==0){pre= new Label(data.getOrigin(), Double.MAX_VALUE, x.getSommet().getSuccessors().get(0)); i++;}//Permet d'initialiser le pre pour faire avancer l'algo
|
||||
|
||||
|
||||
for(Arc suivant : x.getSommet().getSuccessors()){
|
||||
Node y = suivant.getDestination();
|
||||
for (Label l : List){
|
||||
|
|
Loading…
Reference in a new issue