MCPcopy Create free account
hub / github.com/rambaut/figtree / getExternalEdges

Method getExternalEdges

src/figtree/treeviewer/ReRootedTree.java:462–468  ·  view source on GitHub ↗

The set of external edges. This is a pretty inefficient implementation because a new set is constructed each time this is called. @return the set of external edges.

()

Source from the content-addressed store, hash-verified

460 * @return the set of external edges.
461 */
462 public Set<Edge> getExternalEdges() {
463 Set<Edge> edges = new LinkedHashSet<Edge>();
464 for (Node node : getExternalNodes()) {
465 edges.add(((ReRootedNode)node).getEdge());
466 }
467 return edges;
468 }
469
470 /**
471 * The set of internal edges. This is a pretty inefficient implementation because

Callers

nothing calls this directly

Calls 3

getExternalNodesMethod · 0.95
addMethod · 0.45
getEdgeMethod · 0.45

Tested by

no test coverage detected