47#ifndef GUM_BINARY_JOIN_TREE_CONVERTER_DEFAULT_H
48#define GUM_BINARY_JOIN_TREE_CONVERTER_DEFAULT_H
The base interface for converting a join tree into a binary join tree.
virtual ~BinaryJoinTreeConverterDefault()
destructor
BinaryJoinTreeConverterDefault & operator=(const BinaryJoinTreeConverterDefault &)
forbid copy operator
BinaryJoinTreeConverterDefault()
default constructor
void _convertClique_(CliqueGraph &JT, NodeId clique, NodeId from, const NodeProperty< Size > &domain_sizes) const
convert a clique and its adjacent cliques into a binary join tree
NodeSet _roots_
the new roots that have been created to compute the last query
const NodeSet & roots() const
returns all the roots considered for all the connected components
void _markConnectedComponent_(const CliqueGraph &JT, NodeId root, NodeProperty< bool > &mark) const
a function used to mark the nodes belonging to a given connected component
float _combinedSize_(const NodeSet &nodes1, const NodeSet &nodes2, const NodeProperty< Size > &domain_sizes) const
returns the domain size of the union of two cliques
void _convertConnectedComponent_(CliqueGraph &JT, NodeId current_node, NodeId from, const NodeProperty< Size > &domain_sizes, NodeProperty< bool > &mark) const
convert a whole connected component into a binary join tree
BinaryJoinTreeConverterDefault(const BinaryJoinTreeConverterDefault &)
forbid copy constructor
CliqueGraph convert(const CliqueGraph &JT, const NodeProperty< Size > &domain_sizes, const NodeSet &roots)
returns a binary join tree corresponding to clique graph JT
Size NodeId
Type for node ids.
HashTable< NodeId, VAL > NodeProperty
Property on graph elements.
Set< NodeId > NodeSet
Some typdefs and define for shortcuts ...
gum is the global namespace for all aGrUM entities