26 template <
typename GUM_SCALAR >
27 ArcProperty< Set< const Potential< GUM_SCALAR >* > >
35 for (
const auto& barren : barren_nodes) {
37 for (
const auto node : barren.second) {
40 result.
insert(
Arc(barren.first), std::move(potentials));
virtual const Potential< GUM_SCALAR > & cpt(NodeId varId) const =0
Returns the CPT of a variable.
Class representing the minimal interface for Bayesian Network.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
The class for generic Hash Tables.
Representation of a setA Set is a structure that contains arbitrary elements.
The base class for all directed edgesThis class is used as a basis for manipulating all directed edge...
NodeSet barrenNodes()
returns the set of barren nodes
value_type & insert(const Key &key, const Val &val)
Adds a new element (actually a copy of this element) into the hash table.
void insert(const Key &k)
Inserts a new element into the set.
ArcProperty< Set< const Potential< GUM_SCALAR > *> > barrenPotentials(const CliqueGraph &junction_tree, const IBayesNet< GUM_SCALAR > &bn)
returns the set of barren potentials in messages sent in a junction tree