(Node node)
| 259 | } |
| 260 | |
| 261 | public Edge getParentEdge(Node node) { |
| 262 | if (!(node instanceof ReRootedNode)) { |
| 263 | throw new IllegalArgumentException("Node, " + node.toString() + " is not an instance of SimpleRootedNode"); |
| 264 | } |
| 265 | return ((ReRootedNode)node).getEdge(); |
| 266 | } |
| 267 | |
| 268 | /** |
| 269 | * The root of the tree has the largest node height of |