|
A library for working with phylogenetic and population genetic data.
v0.32.0
|
|
Go to the documentation of this file. 1 #ifndef GENESIS_TREE_FUNCTION_DISTANCES_H_
2 #define GENESIS_TREE_FUNCTION_DISTANCES_H_
127 #endif // include guard
std::vector< size_t > edge_path_length_vector(Tree const &tree, TreeEdge const &edge)
utils::Matrix< size_t > edge_path_length_matrix(Tree const &tree)
Container namespace for all symbols of genesis in order to keep them separate when used as a library.
utils::Matrix< size_t > node_path_length_matrix(Tree const &tree)
Return a matrix containing the pairwise depth of all nodes of the tree.
std::vector< size_t > node_path_length_vector(Tree const &tree, TreeNode const &node)
Return a vector containing the depth of all nodes with respect to the given start node.
std::vector< std::pair< TreeNode const *, size_t > > closest_leaf_depth_vector(const Tree &tree)
Returns a vector containing the closest leaf node for each node, measured in number of edges between ...