A toolkit for working with phylogenetic data.
v0.20.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
manipulation.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

TreeEdge & add_new_leaf_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...
 
TreeEdge & add_new_node (Tree &tree, TreeNode &target_node)
 Add a new Node as a leaf to an existing Node. More...
 
TreeNode & add_new_node (Tree &tree, TreeEdge &target_edge)
 Add a new Node that splits an existing Edge. More...
 
TreeNode & add_root_node (Tree &tree, TreeEdge &target_edge)
 Add a new Node that splits an existing Edge, and root the tree on that new Node. 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...