@param node the node whose branch length (to its parent) is being set @param length the length
(Node node, double length)
| 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. |
no outgoing calls
no test coverage detected