|
ADS-IDAC Engine 5.0.0
|
Builds a junction tree from a Bayesian network graph. More...
#include <compiler.hpp>
Static Public Member Functions | |
| static std::unique_ptr< JunctionTree > | compile (const Graph &graph, const std::string &heuristic="min_fill") |
| Compiles a junction tree. More... | |
Static Private Member Functions | |
| static std::vector< std::vector< NodeId > > | moralize (const Graph &graph) |
| Moral graph as adjacency lists indexed by NodeId, each sorted ascending. More... | |
Builds a junction tree from a Bayesian network graph.
Definition at line 18 of file compiler.hpp.
|
static |
Compiles a junction tree.
The steps are:
| graph | Network to compile. The returned tree keeps a pointer to it, so it must outlive the tree. |
| heuristic | Name of an elimination heuristic. The argument is not read: the ordering of step 2 is always used. |
Definition at line 53 of file compiler.cpp.
References bncore::Graph::get_parents(), bncore::Graph::get_variable(), moralize(), bncore::Graph::num_variables(), and bncore::VariableMetadata::states.
Referenced by faulttree::Quantifier::build(), and HumanFailureEventsBBN::NetworkInitiation().
|
staticprivate |
Moral graph as adjacency lists indexed by NodeId, each sorted ascending.
Definition at line 18 of file compiler.cpp.
References bncore::Graph::get_children(), bncore::Graph::get_parents(), and bncore::Graph::num_variables().
Referenced by compile().