|
A library for working with phylogenetic and population genetic data.
v0.32.0
|
|
Tree * find_tree(TreeSet &tree_set, std::string const &name)
Get the first Tree in a TreeSet that is stored with a given name, or nullptr if not found.
size_t size() const
Return the size of the TreeSet, i.e., the number of stored Trees.
tree::TreeSet tree_set(SampleSet const &sample_set)
Return a TreeSet containing all the trees of the SampleSet.
std::string const & name_at(size_t index) const
bool identical_topology(Tree const &lhs, Tree const &rhs, bool identical_indices)
Return whether both trees have an identical topology.
bool equal(Tree const &lhs, Tree const &rhs, std::function< bool(TreeNode const &, TreeNode const &) > node_comparator, std::function< bool(TreeEdge const &, TreeEdge const &) > edge_comparator)
Compare two trees for equality given binary comparator functionals for their nodes and edges.
Class for representing phylogenetic trees.
std::vector< Tree > const & trees() const
Container namespace for all symbols of genesis in order to keep them separate when used as a library.