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

Method setLength

src/figtree/treeviewer/ReRootedTree.java:191–203  ·  view source on GitHub ↗

@param node the node whose branch length (to its parent) is being set @param length the length

(Node node, double length)

Source from the content-addressed store, hash-verified

189 * @param length the length
190 */
191 public void setLength(Node node, double length) {
192 heightsKnown = false;
193 lengthsKnown = true;
194
195 // If a single length of a single branch is set then
196 // assume that all branch have lengths and by extension,
197 // node heights as well as these will be calculated
198 // from the lengths
199 hasLengths = true;
200 hasHeights = true;
201
202 ((ReRootedNode)node).setLength(length);
203 }
204
205 /**
206 * @param node the node whose children are being requested.

Callers 3

ReRootedTreeMethod · 0.95
createNodesMethod · 0.95
nodeHeightsToLengthsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected