pydistsim.utils.tree

Set of utils that operate on network nodes when they have defined tree in their memory under tree_key key. tree_key – key in node memory (dictionary) where parent and

children data is stored in format: {‘parent’: parent_node,

‘children’: [child_node1, child_node2 …]}

Functions

check_tree_key

get_root_node

Return root node in network tree.

Exceptions

Missingtree_key(tree_key)

TreeNetworkException