8 const std::vector<std::size_t> &state_sizes) {
14 const std::vector<NodeId> &scope) {
16 cliques_[c1].neighbor_cliques.push_back(c2);
17 cliques_[c2].neighbor_cliques.push_back(c1);
A potential over an ordered scope of variables.
Directed graphical model over discrete variables.
JunctionTree(const Graph *graph)
void add_clique(const std::vector< NodeId > &scope, const std::vector< std::size_t > &state_sizes)
Appends a clique. Its id is the number of cliques before the call.
void add_separator(std::size_t c1, std::size_t c2, const std::vector< NodeId > &scope)
Appends a separator and records each clique as a neighbor of the other.
std::vector< Clique > cliques_
std::vector< Separator > separators_
Junction tree data structure of BNCore: Clique, Separator and the JunctionTree container.