A generic C++ template class defining the data structure and basic operations with a tree.

template<class Node, class Length>class Tree;

Template Arguments

Public Methods

Tree

num_tips

num_nodes

BranchLengths

FindChildren

FindIdOfNode

FindIdOfParent

FindNodeWithId

HasBranchLengths

LengthOfBranch

SetBranchLengths

SetLengthOfBranch

OrderNodesPosType

OrderNodes

See also