Darwin Help

Back to Index

TreeSize

Function TreeSize - Number of leaves in a tree

Calling Sequence  TreeSize(t)
Parameters
NameTypeDescription

t Treea Tree
Return Type  integer
Synopsis Traverse a tree and returns the number of leaves.
Examples
> t := Rand(Tree):

> TreeSize(t);
17


See also CenterTreeRoot,   RotateTree