This commit is contained in:
Bensouda Idriss 2023-03-22 10:51:02 +01:00
parent 98d0e9c3b8
commit 661162456a
2 changed files with 8 additions and 4 deletions

View file

@ -201,8 +201,13 @@ public class Path {
* @deprecated Need to be implemented.
*/
public boolean isValid() {
// TODO:
return false;
for (int i=0; i<arcs.size();i++){
if(arcs.get(i).getDestination() != arcs.get(i+1).getOrigin()){
return false;
}
}
return true;
}
/**
@ -231,7 +236,6 @@ public class Path {
*
<<<<<<< HEAD
*
=======
*
>>>>>>> 052958ee6eb4821ebbb9c903780d467d62617fd2
*/