public Path getSubPath(int length) { Path temp = new Path(); for (int i = 0; i < length; i++) { temp.add(this.path.get(i)); } return temp; }
/** * 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; }