FFPopSim  2.0
Library for Population Genetics
 All Classes Files Functions Variables Macros Pages
rooted_tree Class Reference

#include <ffpopsim_highd.h>

Collaboration diagram for rooted_tree:

Public Member Functions

 rooted_tree ()
 
virtual ~rooted_tree ()
 
void reset ()
 
void add_generation (vector< node_t > &new_generation, double mean_fitness)
 
int add_terminal_node (node_t &newNode)
 
tree_key_t erase_edge_node (tree_key_t to_be_erased)
 
tree_key_t bridge_edge_node (tree_key_t to_be_bridged)
 
int external_branch_length ()
 
int total_branch_length ()
 
int ancestors_at_age (int age, tree_key_t subtree_root, vector< tree_key_t > &ancestors)
 
int update_leaf_to_root (tree_key_t leaf)
 
void update_tree ()
 
int calc_weight_distribution (tree_key_t subtree_root)
 
void SFS (gsl_histogram *sfs)
 
tree_key_t get_MRCA ()
 
int erase_child (map< tree_key_t, node_t >::iterator Pnode, tree_key_t to_be_erased)
 
int delete_extra_children (tree_key_t subtree_root)
 
int delete_one_child_nodes (tree_key_t subtree_root)
 
bool check_node (tree_key_t node)
 
int check_tree_integrity ()
 
void clear_tree ()
 
string print_newick ()
 
string subtree_newick (tree_key_t root)
 
string print_weight_distribution (tree_key_t node_key)
 
int construct_subtree (vector< tree_key_t > subtree_leafs, rooted_tree &other)
 

Public Attributes

map< tree_key_t, edge_tedges
 
map< tree_key_t, node_tnodes
 
vector< tree_key_tleafs
 
tree_key_t root
 
tree_key_t MRCA
 

Constructor & Destructor Documentation

rooted_tree::rooted_tree ( )

Here is the call graph for this function:

rooted_tree::~rooted_tree ( )
virtual

Member Function Documentation

void rooted_tree::add_generation ( vector< node_t > &  new_generation,
double  mean_fitness 
)

Here is the call graph for this function:

int rooted_tree::add_terminal_node ( node_t newNode)

Here is the caller graph for this function:

int rooted_tree::ancestors_at_age ( int  age,
tree_key_t  subtree_root,
vector< tree_key_t > &  ancestors 
)
tree_key_t rooted_tree::bridge_edge_node ( tree_key_t  to_be_bridged)

Here is the call graph for this function:

Here is the caller graph for this function:

int rooted_tree::calc_weight_distribution ( tree_key_t  subtree_root)
bool rooted_tree::check_node ( tree_key_t  node)

Here is the caller graph for this function:

int rooted_tree::check_tree_integrity ( )

Here is the call graph for this function:

void rooted_tree::clear_tree ( )

Here is the caller graph for this function:

int rooted_tree::construct_subtree ( vector< tree_key_t subtree_leafs,
rooted_tree other 
)

Here is the call graph for this function:

int rooted_tree::delete_extra_children ( tree_key_t  subtree_root)

Here is the call graph for this function:

Here is the caller graph for this function:

int rooted_tree::delete_one_child_nodes ( tree_key_t  subtree_root)

Here is the call graph for this function:

Here is the caller graph for this function:

int rooted_tree::erase_child ( map< tree_key_t, node_t >::iterator  Pnode,
tree_key_t  to_be_erased 
)

Here is the caller graph for this function:

tree_key_t rooted_tree::erase_edge_node ( tree_key_t  to_be_erased)

Here is the call graph for this function:

Here is the caller graph for this function:

int rooted_tree::external_branch_length ( )
tree_key_t rooted_tree::get_MRCA ( )
inline
string rooted_tree::print_newick ( )

Here is the call graph for this function:

string rooted_tree::print_weight_distribution ( tree_key_t  node_key)
void rooted_tree::reset ( )

Here is the caller graph for this function:

void rooted_tree::SFS ( gsl_histogram *  sfs)
string rooted_tree::subtree_newick ( tree_key_t  root)

Here is the caller graph for this function:

int rooted_tree::total_branch_length ( )
int rooted_tree::update_leaf_to_root ( tree_key_t  leaf)

Here is the caller graph for this function:

void rooted_tree::update_tree ( )

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

map< tree_key_t , edge_t > rooted_tree::edges
vector<tree_key_t> rooted_tree::leafs
tree_key_t rooted_tree::MRCA
map< tree_key_t , node_t > rooted_tree::nodes
tree_key_t rooted_tree::root

The documentation for this class was generated from the following files: