A toolkit for working with phylogenetic data.
v0.18.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
function/tree_set.cpp File Reference

Go to the source code of this file.

Namespaces

 genesis
 Container namespace for all symbols of genesis in order to keep them separate when used as a library.
 
 genesis::tree
 

Functions

bool all_equal (TreeSet const &tset, std::function< bool(TreeNode const &, TreeNode const &)> node_comparator, std::function< bool(TreeEdge const &, TreeEdge const &)> edge_comparator)
 Compare whether all Trees in a TreeSet are equal using a given comparator functional. More...
 
bool all_identical_topology (TreeSet const &tset)
 Compare whether all Trees in a TreeSet are equal using their default comparision operators for nodes and edges. More...
 
Tree average_branch_length_tree (TreeSet const &tset)
 Return a Tree where the branch lengths are the average of the Trees in the TreeSet, given that they all have the same topology. More...
 
Tree * find_tree (TreeSet &tset, std::string const &name)
 Get the first Tree in a TreeSet that is stored with a given name, or nullptr if not found. More...
 
Tree const * find_tree (TreeSet const &tset, std::string const &name)
 Get the first Tree in a TreeSet that is stored with a given name, or nullptr if not found. More...