nodify.utils

Functions

nodify_module(module[, node_class])

Returns a copy of a module where all functions are replaced with nodes.

traverse_tree_backward(leaves, func)

Traverse a tree of nodes in a backwards fashion.

traverse_tree_forward(roots, func)

Traverse a tree of nodes in a forward fashion.

visit_all_connected(nodes, func[, _seen_nodes])

Visit all nodes that are connected to a list of nodes.

Exceptions

StopTraverse

Exception that should be raised by callback functions to stop the traversal of a tree.