- class openpathsampling.treelogic.TreeMixin
A mixin that provides basic tree handling.
A tree is basically a node with children of the same type. The mixin requires to implement .subnodes to contain a list of children.
The __contains__ operator requires _default_match to be implemented. Otherwise is defaults to a comparison between two elements.
Traverse the tree in post-order applying a function with depth
depth_pre_order(fnc[, level, only_canonical])
Traverse the tree of node in pre-order applying a function
Return a list of key : subtree tuples
Traverse the tree in post-order applying a function
Traverse the tree in pre-order applying a function
Apply a function to each node and return a nested tree of results
Return the object as a tree structure of nested lists of nodes
A unique identifier to build the unique key for a position in a tree