valid
這個提交存在於:
父節點
98d0e9c3b8
當前提交
661162456a
共有 2 個檔案被更改,包括 8 行新增 和 4 行删除
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -231,7 +236,6 @@ public class Path {
|
||||||
*
|
*
|
||||||
<<<<<<< HEAD
|
<<<<<<< HEAD
|
||||||
*
|
*
|
||||||
=======
|
|
||||||
*
|
*
|
||||||
>>>>>>> 052958ee6eb4821ebbb9c903780d467d62617fd2
|
>>>>>>> 052958ee6eb4821ebbb9c903780d467d62617fd2
|
||||||
*/
|
*/
|
||||||
|
|
載入中…
新增問題並參考