Adds the given node directly to the children list of this node. THe #p value for x will be set automatically. The #degree of this node will not be adjusted, and must be incremented correctly by the caller @param x the node to add as a child of this node. Should be a sing
(FibNode<T> x)
| 332 | * singular item |
| 333 | */ |
| 334 | public void addChild(FibNode<T> x) |
| 335 | { |
| 336 | if(this.child == null) |
| 337 | this.child = x; |
| 338 | else |
| 339 | this.child = merge(this.child, x); |
| 340 | x.p = this; |
| 341 | } |
| 342 | |
| 343 | @Override |
| 344 | public String toString() |