File: subtree_extraction_impl.hpp

package info (click to toggle)
iqtree 2.0.7%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 14,700 kB
  • sloc: cpp: 142,571; ansic: 57,789; sh: 275; python: 242; makefile: 95
file content (17 lines) | stat: -rw-r--r-- 504 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef SUBTREE_EXTRACTION_IMPL_HPP
#define SUBTREE_EXTRACTION_IMPL_HPP

#include <terraces/subtree_extraction.hpp>

namespace terraces {

std::pair<bitmatrix, std::vector<index>> compute_node_occ(const tree& t, const bitmatrix& occ);

index induced_lca(const tree& t, const bitmatrix& node_occ, index column);

tree subtree(const tree& t, const bitmatrix& node_occ,
             const std::vector<index>& num_leaves_per_site, index site);

} // namespace terraces

#endif // SUBTREE_EXTRACTION_IMPL_HPP