leaves_in_subtree#

Tangle.leaves_in_subtree(agreement: int = 0) list[Tangle]#

Find all leaves in the binary tree.

Parameters#

max_depth

The maximum depth to search. If max_depth is not None then max_depth is the number of layers which are checked.

Returns#

list of BinTreeNode

The found nodes.