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

Method getInternalEdges

src/figtree/treeviewer/ReRootedTree.java:475–483  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

473 * @return the set of internal edges.
474 */
475 public Set<Edge> getInternalEdges() {
476 Set<Edge> edges = new LinkedHashSet<Edge>();
477 for (Node node : getInternalNodes()) {
478 if (node != getRootNode()) {
479 edges.add(((ReRootedNode)node).getEdge());
480 }
481 }
482 return edges;
483 }
484
485 /**
486 * @param degree the number of edges connected to a node

Callers

nothing calls this directly

Calls 4

getInternalNodesMethod · 0.95
getRootNodeMethod · 0.95
addMethod · 0.45
getEdgeMethod · 0.45

Tested by

no test coverage detected