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

Method getEdges

src/figtree/treeviewer/ReRootedTree.java:358–365  ·  view source on GitHub ↗

Returns a list of edges connected to this node @param node @return the set of nodes that are attached by edges to the given node.

(Node node)

Source from the content-addressed store, hash-verified

356 * @return the set of nodes that are attached by edges to the given node.
357 */
358 public List<Edge> getEdges(Node node) {
359 List<Edge> edges = new ArrayList<Edge>();
360 for (Node adjNode : getAdjacencies(node)) {
361 edges.add(((ReRootedNode)adjNode).getEdge());
362
363 }
364 return edges;
365 }
366
367 /**
368 * @param node

Callers

nothing calls this directly

Calls 5

getAdjacenciesMethod · 0.95
getNodesMethod · 0.95
getRootNodeMethod · 0.95
addMethod · 0.45
getEdgeMethod · 0.45

Tested by

no test coverage detected