3.8.2. qupulse.utils.tree

This module contains a tree implementation.

class qupulse.utils.tree.Node(parent=None, children=None)[source]

Bases: object

assert_tree_integrity()[source]
Return type

None

property children

shallow copy of children

Type

return

Return type

Sequence[~_NodeType]

debug = False
depth()[source]
Return type

int

get_breadth_first_iterator()[source]
Return type

Generator[~_NodeType, None, None]

get_depth_first_iterator()[source]
Return type

Generator[~_NodeType, None, None]

get_location()[source]
Return type

Tuple[int, …]

get_root()[source]
Return type

~_NodeType

is_balanced()[source]
Return type

bool

is_leaf()[source]
Return type

bool

locate(location)[source]
Return type

~_NodeType

property parent
Return type

Optional[~_NodeType]

property parent_index
Return type

int

parse_child(child)[source]
Return type

~_NodeType