geneticengine.representations.tree.utils ======================================== .. py:module:: geneticengine.representations.tree.utils Attributes ---------- .. autoapisummary:: geneticengine.representations.tree.utils.T Functions --------- .. autoapisummary:: geneticengine.representations.tree.utils.relabel_nodes geneticengine.representations.tree.utils.relabel_nodes_of_trees geneticengine.representations.tree.utils.tree_node_fold Module Contents --------------- .. py:function:: relabel_nodes(i, g, is_list = False) Recomputes node specifics in the tree. Returns the number of nodes, distance to terminal (depth), typed this way, and the weighted number of nodes (counting depth points instead of nodes). .. py:function:: relabel_nodes_of_trees(i, g) Recomputes all the nodes, depth and distance_to_term in the tree. .. py:data:: T .. py:function:: tree_node_fold(i, f) Recursively folds over all elements of the tree.