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

Method isExternal

src/figtree/treeviewer/ReRootedTree.java:320–325  ·  view source on GitHub ↗

@param node the node @return true if the node is of degree 1.

(Node node)

Source from the content-addressed store, hash-verified

318 * @return true if the node is of degree 1.
319 */
320 public boolean isExternal(Node node) {
321 if (!(node instanceof ReRootedNode)) {
322 throw new IllegalArgumentException("Node, " + node.toString() + " is not an instance of SimpleRootedNode. It is an instance of "+node.getClass().getName());
323 }
324 return ((ReRootedNode)node).getChildren().size() == 0;
325 }
326
327 /**
328 * @param taxon the taxon

Callers 15

getNodeTextMethod · 0.45
calculateStepsMethod · 0.45
reconstructStatesMethod · 0.45
reconstructStates2Method · 0.45
addSelectedChildTipsMethod · 0.45
cartoonSelectedNodesMethod · 0.45
collapseSelectedNodesMethod · 0.45
hilightSelectedNodesMethod · 0.45
getSelectedSubtreeMethod · 0.45

Calls 3

getNameMethod · 0.65
toStringMethod · 0.45
getChildrenMethod · 0.45

Tested by

no test coverage detected