A toolkit for working with phylogenetic data.
v0.19.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
manipulation.hpp File Reference
#include <cstddef>

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
 

Enumerations

enum  LadderizeOrder { kSmallFirst, kLargeFirst }
 

Functions

TreeEdge & add_new_node (Tree &tree, TreeNode &target_node)
 Add a new Node as a leaf to an existing Node. More...
 
TreeEdge & add_new_node (Tree &tree, TreeEdge &target_edge)
 Add a new Node as a leaf to an existing Edge, by also adding a new Node in the middle of that Edge. More...
 
void ladderize (Tree &tree, LadderizeOrder order)
 
void reroot (Tree &tree, TreeLink &at_link)
 Reroot the Tree at the given TreeLink. More...
 
void reroot (Tree &tree, TreeNode &at_node)
 Reroot the Tree at the given TreeNode. More...
 
void reroot_at_node (Tree &tree, size_t node_index)
 Reroot the Tree at the TreeNode with the given index. More...