aGrUM  0.16.0
binaryJoinTreeConverterDefault.h
Go to the documentation of this file.
1 
28 #ifndef GUM_BINARY_JOIN_TREE_CONVERTER_DEFAULT_H
29 #define GUM_BINARY_JOIN_TREE_CONVERTER_DEFAULT_H
30 
32 
33 namespace gum {
34 
36  public:
37  // ############################################################################
39  // ############################################################################
41 
44 
47 
49 
50  // ############################################################################
52  // ############################################################################
54 
56 
69  const NodeProperty< Size >& domain_sizes,
70  const NodeSet& roots);
71 
73  const NodeSet& roots() const;
74 
76 
77  private:
80 
83 
87 
91  NodeId root,
92  NodeProperty< bool >& mark) const;
93 
96  NodeId current_node,
97  NodeId from,
98  const NodeProperty< Size >& domain_sizes,
99  NodeProperty< bool >& mark) const;
100 
102  void __convertClique(CliqueGraph& JT,
103  NodeId clique,
104  NodeId from,
105  const NodeProperty< Size >& domain_sizes) const;
106 
108  float __combinedSize(const NodeSet& nodes1,
109  const NodeSet& nodes2,
110  const NodeProperty< Size >& domain_sizes) const;
111  };
112 
113 } /* namespace gum */
114 
115 #endif /* GUM_BINARY_JOIN_TREE_CONVERTER_DEFAULT_H */
BinaryJoinTreeConverterDefault & operator=(const BinaryJoinTreeConverterDefault &)
forbid copy operator
CliqueGraph convert(const CliqueGraph &JT, const NodeProperty< Size > &domain_sizes, const NodeSet &roots)
returns a binary join tree corresponding to clique graph JT
void __markConnectedComponent(const CliqueGraph &JT, NodeId root, NodeProperty< bool > &mark) const
a function used to mark the nodes belonging to a given connected component
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Definition: agrum.h:25
The class for generic Hash Tables.
Definition: hashTable.h:679
const NodeSet & roots() const
returns all the roots considered for all the connected components
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
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
Basic graph of cliques.
Definition: cliqueGraph.h:58
NodeSet __roots
the new roots that have been created to compute the last query
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
float __combinedSize(const NodeSet &nodes1, const NodeSet &nodes2, const NodeProperty< Size > &domain_sizes) const
returns the domain size of the union of two cliques
Size NodeId
Type for node ids.
Definition: graphElements.h:98