bbi.utils.node

get_all_children(node: Node, recursive: bool = True) list[Node]

Gets all children of a node.

Parameters:
  • node (Node) – The node to get children from.

  • recursive (bool) – Whether to add children recursively. Defaults to True.

Returns:

List of all child nodes.

Return type:

list[Node]