dijkstra add test road allowed
This commit is contained in:
parent
23e82a6ba0
commit
72ee91ff74
2 changed files with 5 additions and 0 deletions
|
@ -50,6 +50,11 @@ public class DijkstraAlgorithm extends ShortestPathAlgorithm {
|
|||
Tas.deleteMin();
|
||||
|
||||
for(Arc suivant : x.getSommet().getSuccessors()){
|
||||
// Small test to check allowed roads...
|
||||
if (!data.isAllowed(suivant)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
Label l=List_Label.get(suivant.getDestination().getId());
|
||||
if(!l.isMarque()){
|
||||
Boolean changé = false;
|
||||
|
|
Binary file not shown.
Loading…
Reference in a new issue