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. * @deprecated Need to be implemented.
*/ */
public boolean isValid() { public boolean isValid() {
// TODO: for (int i=0; i<arcs.size();i++){
return false; if(arcs.get(i).getDestination() != arcs.get(i+1).getOrigin()){
return false;
}
}
return true;
} }
/** /**
@ -230,8 +235,7 @@ public class Path {
* kilometers-per-hour). * kilometers-per-hour).
* *
<<<<<<< HEAD <<<<<<< HEAD
* *
=======
* *
>>>>>>> 052958ee6eb4821ebbb9c903780d467d62617fd2 >>>>>>> 052958ee6eb4821ebbb9c903780d467d62617fd2
*/ */