bug de chemin non existant réparé

This commit is contained in:
Tiphaine Pellerin 2026-06-04 16:35:26 +02:00
parent fc6268576e
commit 9c9fb02a9b
2 changed files with 3 additions and 0 deletions

View file

@ -43,6 +43,9 @@ public class DijkstraAlgorithm extends ShortestPathAlgorithm {
tas.insert(listLabel[nod.getId()]);
notifyOriginProcessed(nod);
}
else if (nod.equals(dataInput.getDestination())){
listLabel[nod.getId()] = newLabel(nod);
}
}
Label xl = tas.findMin();