|
A library for working with phylogenetic and population genetic data.
v0.32.0
|
|
Go to the documentation of this file. 1 #ifndef GENESIS_TREE_BIPARTITION_BIPARTITION_H_
2 #define GENESIS_TREE_BIPARTITION_BIPARTITION_H_
77 throw std::runtime_error(
"Cannot return Subtree for empty Bipartition." );
105 return link_ ==
nullptr;
122 #endif // include guard
utils::Bitvector const & leaf_nodes() const
Bipartition & operator=(Bipartition const &)=default
utils::Bitvector & bitvector()
Bipartition(TreeLink const &link, utils::Bitvector const &leaf_nodes)
void negate()
Flip all bits.
Reference to a subtree of a Tree.
Container namespace for all symbols of genesis in order to keep them separate when used as a library.
TreeLink const & link() const
TreeLink & outer()
Return the TreeLink of the adjacent TreeNode.
utils::Bitvector leaf_nodes_