| Calling Sequence | CenterTreeRoot(t)
| |||||||||
| Parameters |
| |||||||||
| Return Type | Tree | |||||||||
| Synopsis | Place root of tree such that the number of leaves on each side is most equal. Useful when drawing circular trees when the root has been placed far from the center. | |||||||||
| Examples | > t := Tree(Leaf('1',3),0,Tree(Tree(Leaf('2',3),2,Leaf('3',3)),1,Leaf('4',3))):
> CenterTreeRoot(t); Tree(Tree(Leaf(2,1.5000),0.5000,Leaf(3,1.5000)),0,Tree(Leaf(1,4.5000),0.5000,Lea f(4,2.5000),100)) | |||||||||
| See also | RotateTree, TreeSize | |||||||||