m
This commit is contained in:
parent
4700131542
commit
fabaf846d0
2 changed files with 1 additions and 7 deletions
|
@ -200,18 +200,12 @@ public class Path {
|
|||
*
|
||||
*/
|
||||
public boolean isValid() {
|
||||
<<<<<<< HEAD
|
||||
boolean valid=true;
|
||||
for (int i=0; i<arcs.size()-1;i++){
|
||||
if(arcs.get(i).getDestination() != arcs.get(i+1).getOrigin()){
|
||||
valid=false;
|
||||
|
||||
=======
|
||||
for (int i=0; i<arcs.size()-1;i++){
|
||||
if(arcs.get(i).getDestination() != arcs.get(i+1).getOrigin()){
|
||||
return false;
|
||||
>>>>>>> 9512825678cb119a068d94f8af261d356638dbdd
|
||||
}
|
||||
|
||||
}
|
||||
return valid;
|
||||
}
|
||||
|
|
Binary file not shown.
Loading…
Reference in a new issue