public Tree extends UnitsProvider
Interface for a phylogenetic or genealogical tree.
Node getRoot()
void setRoot(Node root)
This method constructs a tree from the given root node.
root - the root node of the tree to construct.int getExternalNodeCount()
int getInternalNodeCount()
Node getExternalNode(int i)
Node getInternalNode(int i)
void createNodeList()
This method is called to ensure that the calls to other methods in this interface are valid.
int getUnits()
Gets the units that this tree's branch lengths and node heights are expressed in.
int whichIdNumber(Taxon t)
void setAttribute(Node node, java.lang.String name, java.lang.Object value)
Sets an named attribute for a given node.
node - the node whose attribute is being set.name - the name of the attribute.value - the new value of the attribute.java.lang.Object getAttribute(Node node, java.lang.String name)
node - the node being interrogated.name - the name of the attribute of interest.Tree getCopy()