コード例 #1
0
ファイル: Path.java プロジェクト: reactome/PathwayBrowser
 public Path getSubPath(int length) {
   Path temp = new Path();
   for (int i = 0; i < length; i++) {
     temp.add(this.path.get(i));
   }
   return temp;
 }
コード例 #2
0
 /**
  * Checks the given ancestors list to get the first path without orphan pathways
  *
  * @param list ancestors containing multiple paths through a given pathway
  * @return the first path without orphan pathways
  */
 private static List<Path> getPathsWithoutOrphanPathways(List<Path> list) {
   List<Path> rtn = new LinkedList<Path>();
   for (Path path : list) {
     if (path.rootHasDiagram()) {
       rtn.add(path);
     }
   }
   return rtn;
 }