roads allowed feat

This commit is contained in:
Clement Lacau 2024-04-26 17:52:00 +02:00
parent 5dfd14f3f2
commit 429a22fcd9

View file

@ -63,7 +63,7 @@ public class DijkstraAlgorithm extends ShortestPathAlgorithm {
for (Arc successorArc : x.getNode().getSuccessors()) {
Label successor = labels.get(successorArc.getDestination().getId());
if (!successor.isMarked()) {
if (!successor.isMarked() && data.isAllowed(successorArc)) {
// This loop serves to get the lentgh of the arc as
// we know its origin and destination
for (Arc arc : x.getNode().getSuccessors()) {