|
A library for working with phylogenetic and population genetic data.
v0.32.0
|
|
Go to the documentation of this file.
65 for (
size_t i = 0; i < tree.
node_count(); ++i) {
66 out <<
"Node " << i <<
" \t Main Link: " << tree.
node_at(i).
link().
index() <<
"\n";
71 for (
size_t i = 0; i < tree.
edge_count(); ++i) {
80 for (
size_t i = 0; i < tree.
link_count(); ++i) {
92 std::ostringstream res;
TreeLink & primary_link()
Return the TreeLink of this TreeEdge that points towards the root.
size_t node_count() const
Return the number of TreeNodes of the Tree.
size_t link_count() const
Return the number of TreeLinks of the Tree.
size_t index() const
Return the index of this Link.
TreeLink & next()
Return the next TreeLink within the TreeNode of this link.
TreeNode & node()
Return the TreeNode of this TreeLink.
size_t index() const
Return the index of this Edge.
TreeNode & node_at(size_t index)
Return the TreeNode at a certain index.
TreeEdge & edge_at(size_t index)
Return the TreeEdge at a certain index.
Class for representing phylogenetic trees.
Container namespace for all symbols of genesis in order to keep them separate when used as a library.
TreeLink & link()
Return the TreeLink that points towards the root.
void print(std::ostream &out, Tree const &tree)
TreeLink & link_at(size_t index)
Return the TreeLink at a certain index.
TreeLink & outer()
Return the TreeLink of the adjacent TreeNode.
size_t index() const
Return the index of this Node.
TreeEdge & edge()
Return the TreeEdge of this TreeLink.
TreeLink & secondary_link()
Return the TreeLink of this TreeEdge that points away from the root.
size_t edge_count() const
Return the number of TreeEdges of the Tree.