44 static std::unique_ptr<JunctionTree>
45 compile(
const Graph &graph,
const std::string &heuristic =
"min_fill");
49 static std::vector<std::vector<NodeId>>
moralize(
const Graph &graph);
Directed graphical model over discrete variables.
Builds a junction tree from a Bayesian network graph.
static std::vector< std::vector< NodeId > > moralize(const Graph &graph)
Moral graph as adjacency lists indexed by NodeId, each sorted ascending.
static std::unique_ptr< JunctionTree > compile(const Graph &graph, const std::string &heuristic="min_fill")
Compiles a junction tree.
bncore::Graph, the discrete Bayesian network model: variables, their states, directed edges and condi...
Junction tree data structure of BNCore: Clique, Separator and the JunctionTree container.