level_in_subtree#

FTreeNode.level_in_subtree(depth: int) list[Node]#

Return all the nodes at a certain depth below this node.

Parameters#

depth

The depth of the level to be returned. Depth of 0 means that you get a list just containing the node itself.

Returns#

list of BinTreeNode

The list of all nodes at the specified depth.