Public Member Functions

MGT::TaxaTree::NodeReducerVisitor Class Reference

List of all members.

Public Member Functions

def __init__

Detailed Description

Removes all nodes from a tree for which a given predicate is false.
A node is removed by connecting all its children directly with its parent.
It should be applied in the depth-top order.
It never removes the starting node, so it must be already a valid reduced node
(predicate is true) if you want to get the full subtree in a reduced form.

Constructor & Destructor Documentation

def MGT::TaxaTree::NodeReducerVisitor::__init__ (   self,
  predicate,
  tree 
)
@param predicate - if  not predicate(node), remove the node
@param tree - the entire tree object; it will be used to clean up after node removal

The documentation for this class was generated from the following file: