STree.
getLeafs
Get all leaf nodes in the tree.
recompute_flag (bool) – Whether to force recomputing the leaf list. Defaults to 1.