1
0
Fork 0

Update Dijkstra - verifiy if infeasible

This commit is contained in:
Sebastien Moll 2026-05-06 18:09:22 +02:00
parent 07029f751d
commit 3df94a9cec

View file

@ -73,6 +73,11 @@ public class DijkstraAlgorithm extends ShortestPathAlgorithm {
}
}
}
// Destination has no predecessor, the solution is infeasible...
if (destinationNodeLabel.getPere() == null) {
return new ShortestPathSolution(data, Status.INFEASIBLE);
}
notifyDestinationReached(data.getDestination());