A toolkit for working with phylogenetic data.
v0.22.1
tree_set.cpp File Reference
#include "genesis/tree/function/tree_set.hpp"
#include "genesis/tree/tree.hpp"
#include "genesis/tree/tree_set.hpp"
#include "genesis/tree/function/operators.hpp"
#include <stdexcept>
#include <vector>

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 equal (TreeSet const &tree_set, 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...
 
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. More...
 
Tree const * find_tree (TreeSet const &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. More...
 
bool identical_topology (TreeSet const &tree_set)
 Compare whether all Trees in a TreeSet are equal using their default comparision operators for nodes and edges. More...