@param node the node whose height is being set @param height the height
(Node node, double height)
| 171 | * @param height the height |
| 172 | */ |
| 173 | public void setHeight(Node node, double height) { |
| 174 | lengthsKnown = false; |
| 175 | heightsKnown = true; |
| 176 | |
| 177 | // If a single height of a single node is set then |
| 178 | // assume that all nodes have heights and by extension, |
| 179 | // branch lengths as well as these will be calculated |
| 180 | // from the heights |
| 181 | hasLengths = true; |
| 182 | hasHeights = true; |
| 183 | |
| 184 | ((ReRootedNode)node).setHeight(height); |
| 185 | } |
| 186 | |
| 187 | /** |
| 188 | * @param node the node whose branch length (to its parent) is being set |
no outgoing calls
no test coverage detected