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

Method getParent

src/figtree/treeviewer/ReRootedTree.java:254–259  ·  view source on GitHub ↗

@param node the node whose parent is requested @return the parent node of the given node, or null if the node is the root node.

(Node node)

Source from the content-addressed store, hash-verified

252 * if the node is the root node.
253 */
254 public Node getParent(Node node) {
255 if (!(node instanceof ReRootedNode)) {
256 throw new IllegalArgumentException("Node, " + node.toString() + " is not an instance of SimpleRootedNode");
257 }
258 return ((ReRootedNode)node).getParent();
259 }
260
261 public Edge getParentEdge(Node node) {
262 if (!(node instanceof ReRootedNode)) {

Callers 9

amendNodeSelectionMethod · 0.45
amendCladeSelectionMethod · 0.45
drawTreeMethod · 0.45
createNodesMethod · 0.45
getEdgeMethod · 0.45
getEdgeLengthMethod · 0.45
getNodesMethod · 0.45
appendTreeMethod · 0.45

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected