45 template <
typename GUM_SCALAR >
54 for (
const auto& barren: barren_nodes) {
56 for (
const auto node: barren.second) {
59 result.
insert(
Arc(barren.first), std::move(tensors));
The base class for all directed edges.
ArcProperty< Set< const Tensor< GUM_SCALAR > * > > barrenTensors(const CliqueGraph &junction_tree, const IBayesNet< GUM_SCALAR > &bn)
returns the set of barren tensors in messages sent in a junction tree
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.
Class representing the minimal interface for Bayesian network with no numerical data.
virtual const Tensor< GUM_SCALAR > & cpt(NodeId varId) const =0
Returns the CPT of a variable.
void insert(const Key &k)
Inserts a new element into the set.
HashTable< Arc, VAL > ArcProperty
Property on graph elements.
gum is the global namespace for all aGrUM entities