fix(dijkstra): filter invalid arcs during reconstruction
This commit is contained in:
parent
5363dd1a89
commit
224ab4a97d
1 changed files with 1 additions and 1 deletions
|
@ -110,7 +110,7 @@ public class DijkstraAlgorithm extends ShortestPathAlgorithm {
|
|||
// current node and add it to the path
|
||||
if (parent_label != null) {
|
||||
for (Arc arc : parent_label.getNode().getSuccessors()) {
|
||||
if (arc.getDestination().getId() == current_label.getNode().getId()) {
|
||||
if (arc.getDestination().getId() == current_label.getNode().getId() && data.isAllowed(arc)) {
|
||||
arcs_path.add(arc);
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue