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 Bipartition(TreeLink const &link, utils::Bitvector const &leaf_nodes)
Bipartition & operator=(Bipartition const &)=default
TreeLink const & link() const
utils::Bitvector & bitvector()
utils::Bitvector const & leaf_nodes() const
Container namespace for all symbols of genesis in order to keep them separate when used as a library...
Reference to a subtree of a Tree.
void negate()
Flip all bits.
utils::Bitvector leaf_nodes_
TreeLink & outer()
Return the TreeLink of the adjacent TreeNode.