aGrUM  0.20.2
a C++ library for (probabilistic) graphical models
gum::DefaultEliminationSequenceStrategy Class Reference

An efficient unconstrained elimination sequence algorithm. More...

#include <defaultEliminationSequenceStrategy.h>

+ Inheritance diagram for gum::DefaultEliminationSequenceStrategy:
+ Collaboration diagram for gum::DefaultEliminationSequenceStrategy:

Public Member Functions

Constructors / Destructors
 DefaultEliminationSequenceStrategy (double theRatio=GUM_QUASI_RATIO, double theThreshold=GUM_WEIGHT_THRESHOLD)
 default constructor (uses an empty graph) More...
 
 DefaultEliminationSequenceStrategy (UndiGraph *graph, const NodeProperty< Size > *dom_sizes, double ratio=GUM_QUASI_RATIO, double threshold=GUM_WEIGHT_THRESHOLD)
 constructor for an a priori non empty graph More...
 
 DefaultEliminationSequenceStrategy (const DefaultEliminationSequenceStrategy &from)
 copy constructor More...
 
 DefaultEliminationSequenceStrategy (DefaultEliminationSequenceStrategy &&)
 move constructor More...
 
virtual ~DefaultEliminationSequenceStrategy ()
 destructor More...
 
virtual DefaultEliminationSequenceStrategynewFactory () const final
 creates a new elimination sequence of the same type as the current object, but this sequence contains only an empty graph More...
 
virtual DefaultEliminationSequenceStrategycopyFactory () const final
 virtual copy constructor More...
 
Accessors / Modifiers
virtual bool setGraph (UndiGraph *graph, const NodeProperty< Size > *dom_sizes) final
 sets a new graph to be triangulated More...
 
virtual void clear () final
 clears the sequence (to prepare, for instance, a new elimination sequence) More...
 
virtual NodeId nextNodeToEliminate () final
 returns the new node to be eliminated within the triangulation algorithm More...
 
virtual void askFillIns (bool do_it) final
 if the elimination sequence is able to compute fill-ins, we indicate whether we want this feature to be activated More...
 
virtual bool providesFillIns () const final
 indicates whether the fill-ins generated by the eliminated nodes, if needed, will be computed by the elimination sequence, or need be computed by the triangulation itself. More...
 
virtual bool providesGraphUpdate () const final
 indicates whether the elimination sequence updates by itself the graph after a node has been eliminated More...
 
virtual void eliminationUpdate (const NodeId node) final
 performs all the graph/fill-ins updates provided (if any) More...
 
virtual const EdgeSetfillIns () final
 in case fill-ins are provided, this function returns the fill-ins due to all the nodes eliminated so far More...
 
Accessors / Modifiers
UndiGraphgraph () const noexcept
 returns the current graph More...
 
const NodeProperty< Size > * domainSizes () const noexcept
 returns the current domain sizes More...
 

Protected Attributes

UndiGraphgraph_ {nullptr}
 the graph to be triangulated More...
 
const NodeProperty< Size > * domain_sizes_ {nullptr}
 the domain sizes of the variables/nodes More...
 
NodeProperty< doublelog_domain_sizes_
 the log of the domain sizes of the variables/nodes More...
 

Detailed Description

An efficient unconstrained elimination sequence algorithm.

Class DefaultEliminationSequenceStrategy implements an unconstrained elimination sequence algorithm (that is, there is no external constraint on the possible elimination ordering). The ordering is determined as follows:

the nodes that are simplicial (i.e., those that already form a clique

with their neighbors) are eliminated first

then the nodes that are almost simplicial (i.e., if we remove one of

their neighbors, they become simplicial) and that create small cliques,

are eliminated

the quasi simplicial nodes (i.e., the nodes that do not require many

fill-ins to create cliques) that would create small cliques, are eliminated

finally, the heuristic proposed by Kjaerulff(90) is used to compute the

last nodes to be eliminated.

Definition at line 75 of file defaultEliminationSequenceStrategy.h.

Constructor & Destructor Documentation

◆ DefaultEliminationSequenceStrategy() [1/4]

gum::DefaultEliminationSequenceStrategy::DefaultEliminationSequenceStrategy ( double  theRatio = GUM_QUASI_RATIO,
double  theThreshold = GUM_WEIGHT_THRESHOLD 
)

default constructor (uses an empty graph)

Parameters
theRatiothe ratio used by the SimplicialSet included in the DefaultEliminationSequenceStrategy
theThresholdthe weight threshhold of the SimplicialSet included in the DefaultEliminationSequenceStrategy

Definition at line 35 of file defaultEliminationSequenceStrategy.cpp.

References gum::Set< Key, Alloc >::emplace().

37  :
38  simplicial_ratio__(theRatio),
39  simplicial_threshold__(theThreshold) {
40  // for debugging purposes
41  GUM_CONSTRUCTOR(DefaultEliminationSequenceStrategy);
42  }
double simplicial_ratio__
the ratio used by simplicial_set__ for its quasi-simplicial nodes
DefaultEliminationSequenceStrategy(double theRatio=GUM_QUASI_RATIO, double theThreshold=GUM_WEIGHT_THRESHOLD)
default constructor (uses an empty graph)
double simplicial_threshold__
the threshold used by simplicial_set__ to determine small cliques
+ Here is the call graph for this function:

◆ DefaultEliminationSequenceStrategy() [2/4]

gum::DefaultEliminationSequenceStrategy::DefaultEliminationSequenceStrategy ( UndiGraph graph,
const NodeProperty< Size > *  dom_sizes,
double  ratio = GUM_QUASI_RATIO,
double  threshold = GUM_WEIGHT_THRESHOLD 
)

constructor for an a priori non empty graph

Parameters
graphthe graph to be triangulated, i.e., the nodes of which will be eliminated
dom_sizesthe domain sizes of the nodes to be eliminated
ratiothe ratio used by the SimplicialSet included in the DefaultEliminationSequenceStrategy
thresholdthe weight threshhold of the SimplicialSet included in the DefaultEliminationSequenceStrategy
Warning
Note that we allow dom_sizes to be defined over nodes/variables that do not belong to graph. These sizes will simply be ignored. However, it is compulsory that all the nodes of graph belong to dom_sizes
the graph is altered during the triangulation.
note that, by aGrUM's rule, the graph and the domain sizes are not copied but only referenced by the elimination sequence algorithm.

Definition at line 45 of file defaultEliminationSequenceStrategy.cpp.

References gum::Set< Key, Alloc >::emplace().

49  :
50  simplicial_ratio__(ratio),
51  simplicial_threshold__(threshold) {
52  setGraph(graph, domain_sizes);
53 
54  // for debugging purposes
55  GUM_CONSTRUCTOR(DefaultEliminationSequenceStrategy);
56  }
double simplicial_ratio__
the ratio used by simplicial_set__ for its quasi-simplicial nodes
DefaultEliminationSequenceStrategy(double theRatio=GUM_QUASI_RATIO, double theThreshold=GUM_WEIGHT_THRESHOLD)
default constructor (uses an empty graph)
UndiGraph * graph() const noexcept
returns the current graph
double simplicial_threshold__
the threshold used by simplicial_set__ to determine small cliques
virtual bool setGraph(UndiGraph *graph, const NodeProperty< Size > *dom_sizes) final
sets a new graph to be triangulated
+ Here is the call graph for this function:

◆ DefaultEliminationSequenceStrategy() [3/4]

gum::DefaultEliminationSequenceStrategy::DefaultEliminationSequenceStrategy ( const DefaultEliminationSequenceStrategy from)

copy constructor

Warning
The newly created elimination sequence strategy points toward the same undirected graph as the one contained in from but each strategy possesses its own simplicial set. As a result, if both elimination strategies are used at the same time, they will probably result in a mess because their simplicial sets won't be synchronized correctly with the changing undirected graph. So, whenever using this copy constructor, be sure that either from or the newly created strategy is used for a triangulation but not both. This will necessarily be OK in DefaultTriangulations.

Definition at line 59 of file defaultEliminationSequenceStrategy.cpp.

References gum::Set< Key, Alloc >::emplace().

60  :
62  // no need to set log_weights__ because the copy of the simplicial set
63  // will set it properly
64  simplicial_set__(new SimplicialSet(*from.simplicial_set__,
65  graph_,
68  false)),
69  simplicial_ratio__(from.simplicial_ratio__),
70  simplicial_threshold__(from.simplicial_threshold__),
71  provide_fill_ins__(from.provide_fill_ins__) {
72  // for debugging purposes
74  }
double simplicial_ratio__
the ratio used by simplicial_set__ for its quasi-simplicial nodes
NodeProperty< double > log_weights__
for each node, the weight of the clique created by the node&#39;s elimination
bool provide_fill_ins__
indicates whether we compute new fill-ins
DefaultEliminationSequenceStrategy(double theRatio=GUM_QUASI_RATIO, double theThreshold=GUM_WEIGHT_THRESHOLD)
default constructor (uses an empty graph)
SimplicialSet * simplicial_set__
the simplicial set used for determining the best nodes to eliminate
NodeProperty< double > log_domain_sizes_
the log of the domain sizes of the variables/nodes
double simplicial_threshold__
the threshold used by simplicial_set__ to determine small cliques
UndiGraph * graph_
the graph to be triangulated
+ Here is the call graph for this function:

◆ DefaultEliminationSequenceStrategy() [4/4]

gum::DefaultEliminationSequenceStrategy::DefaultEliminationSequenceStrategy ( DefaultEliminationSequenceStrategy &&  from)

move constructor

Definition at line 77 of file defaultEliminationSequenceStrategy.cpp.

References gum::Set< Key, Alloc >::emplace().

78  :
80  log_weights__(std::move(from.log_weights__)),
81  simplicial_set__(from.simplicial_set__),
82  simplicial_ratio__(from.simplicial_ratio__),
83  simplicial_threshold__(from.simplicial_threshold__),
84  provide_fill_ins__(from.provide_fill_ins__) {
85  simplicial_set__->replaceLogWeights(&from.log_weights__, &log_weights__);
86  from.simplicial_set__ = nullptr;
87 
88  // for debugging purposes
90  }
double simplicial_ratio__
the ratio used by simplicial_set__ for its quasi-simplicial nodes
NodeProperty< double > log_weights__
for each node, the weight of the clique created by the node&#39;s elimination
bool provide_fill_ins__
indicates whether we compute new fill-ins
void replaceLogWeights(NodeProperty< double > *old_weigths, NodeProperty< double > *new_weights)
reassigns a new set of cliques&#39; log weights (with the same content)
DefaultEliminationSequenceStrategy(double theRatio=GUM_QUASI_RATIO, double theThreshold=GUM_WEIGHT_THRESHOLD)
default constructor (uses an empty graph)
SimplicialSet * simplicial_set__
the simplicial set used for determining the best nodes to eliminate
double simplicial_threshold__
the threshold used by simplicial_set__ to determine small cliques
+ Here is the call graph for this function:

◆ ~DefaultEliminationSequenceStrategy()

gum::DefaultEliminationSequenceStrategy::~DefaultEliminationSequenceStrategy ( )
virtual

destructor

Definition at line 93 of file defaultEliminationSequenceStrategy.cpp.

References gum::Set< Key, Alloc >::emplace().

93  {
94  // for debugging purposes
95  GUM_DESTRUCTOR(DefaultEliminationSequenceStrategy);
96 
97  if (simplicial_set__ != nullptr) delete simplicial_set__;
98  }
DefaultEliminationSequenceStrategy(double theRatio=GUM_QUASI_RATIO, double theThreshold=GUM_WEIGHT_THRESHOLD)
default constructor (uses an empty graph)
SimplicialSet * simplicial_set__
the simplicial set used for determining the best nodes to eliminate
+ Here is the call graph for this function:

Member Function Documentation

◆ askFillIns()

void gum::DefaultEliminationSequenceStrategy::askFillIns ( bool  do_it)
finalvirtual

if the elimination sequence is able to compute fill-ins, we indicate whether we want this feature to be activated

Parameters
do_itwhen true and the elimination sequence has the ability to compute fill-ins, the elimination sequence will actually compute them (for the triangulation to use them), else they will not be available.

Implements gum::EliminationSequenceStrategy.

Definition at line 195 of file defaultEliminationSequenceStrategy.cpp.

References gum::Set< Key, Alloc >::emplace().

195  {
196  provide_fill_ins__ = do_it;
197 
198  if (simplicial_set__ != nullptr)
200  }
bool provide_fill_ins__
indicates whether we compute new fill-ins
SimplicialSet * simplicial_set__
the simplicial set used for determining the best nodes to eliminate
void setFillIns(bool on_off)
sets/unset the fill-ins storage in the standard triangulation procedure
+ Here is the call graph for this function:

◆ clear()

void gum::DefaultEliminationSequenceStrategy::clear ( )
finalvirtual

clears the sequence (to prepare, for instance, a new elimination sequence)

Reimplemented from gum::EliminationSequenceStrategy.

Definition at line 147 of file defaultEliminationSequenceStrategy.cpp.

References gum::Set< Key, Alloc >::emplace().

147  {
149 
150  log_weights__.clear();
151  if (simplicial_set__ != nullptr) {
152  delete simplicial_set__;
153  simplicial_set__ = nullptr;
154  }
155  }
virtual void clear()
clears the sequence (to prepare, for instance, a new elimination sequence)
NodeProperty< double > log_weights__
for each node, the weight of the clique created by the node&#39;s elimination
SimplicialSet * simplicial_set__
the simplicial set used for determining the best nodes to eliminate
+ Here is the call graph for this function:

◆ copyFactory()

DefaultEliminationSequenceStrategy * gum::DefaultEliminationSequenceStrategy::copyFactory ( ) const
finalvirtual

virtual copy constructor

Warning
The newly created elimination sequence strategy points toward the same undirected graph as the one contained in the current strategy but each strategy possesses its own simplicial set. As a result, if both elimination strategies are used at the same time, they will probably result in a mess because their simplicial sets won't be synchronized correctly with the changing undirected graph. So, whenever using this virtual copy constructor, be sure that either the current or the newly created strategy is used for a triangulation but not both. This will necessarily be OK in DefaultTriangulations.

Implements gum::UnconstrainedEliminationSequenceStrategy.

Definition at line 110 of file defaultEliminationSequenceStrategy.cpp.

References gum::Set< Key, Alloc >::emplace().

110  {
111  return new DefaultEliminationSequenceStrategy(*this);
112  }
DefaultEliminationSequenceStrategy(double theRatio=GUM_QUASI_RATIO, double theThreshold=GUM_WEIGHT_THRESHOLD)
default constructor (uses an empty graph)
+ Here is the call graph for this function:

◆ createSimplicialSet__()

void gum::DefaultEliminationSequenceStrategy::createSimplicialSet__ ( )
private

create a new simplicial set suited for the current graph

Definition at line 115 of file defaultEliminationSequenceStrategy.cpp.

References gum::Set< Key, Alloc >::emplace().

115  {
116  // remove the old simplicial set, if any
117  if (simplicial_set__ != nullptr) {
118  delete simplicial_set__;
119  simplicial_set__ = nullptr;
120  }
121 
122  if (graph_ != nullptr) {
123  // create a simplicial set suited for the graph
124  simplicial_set__ = new SimplicialSet(graph_,
126  &log_weights__,
129 
131  }
132  }
double simplicial_ratio__
the ratio used by simplicial_set__ for its quasi-simplicial nodes
NodeProperty< double > log_weights__
for each node, the weight of the clique created by the node&#39;s elimination
bool provide_fill_ins__
indicates whether we compute new fill-ins
SimplicialSet * simplicial_set__
the simplicial set used for determining the best nodes to eliminate
NodeProperty< double > log_domain_sizes_
the log of the domain sizes of the variables/nodes
double simplicial_threshold__
the threshold used by simplicial_set__ to determine small cliques
UndiGraph * graph_
the graph to be triangulated
void setFillIns(bool on_off)
sets/unset the fill-ins storage in the standard triangulation procedure
+ Here is the call graph for this function:

◆ domainSizes()

INLINE const NodeProperty< Size > * gum::EliminationSequenceStrategy::domainSizes ( ) const
noexceptinherited

returns the current domain sizes

Definition at line 43 of file eliminationSequenceStrategy_inl.h.

References gum::Set< Key, Alloc >::emplace().

43  {
44  return domain_sizes_;
45  }
const NodeProperty< Size > * domain_sizes_
the domain sizes of the variables/nodes
+ Here is the call graph for this function:

◆ eliminationUpdate()

void gum::DefaultEliminationSequenceStrategy::eliminationUpdate ( const NodeId  node)
finalvirtual

performs all the graph/fill-ins updates provided (if any)

performs all the graph/fill-ins updates provided

Parameters
nodethe node the elimination of which requires the graph update

Reimplemented from gum::EliminationSequenceStrategy.

Definition at line 216 of file defaultEliminationSequenceStrategy.cpp.

References gum::Set< Key, Alloc >::emplace().

216  {
217  if (simplicial_set__ != nullptr) {
220  }
221  }
void makeClique(const NodeId id)
adds the necessary edges so that node &#39;id&#39; and its neighbors form a clique
void eraseClique(const NodeId id)
removes a node and its adjacent edges from the underlying graph
SimplicialSet * simplicial_set__
the simplicial set used for determining the best nodes to eliminate
+ Here is the call graph for this function:

◆ fillIns()

const EdgeSet & gum::DefaultEliminationSequenceStrategy::fillIns ( )
finalvirtual

in case fill-ins are provided, this function returns the fill-ins due to all the nodes eliminated so far

in case fill-ins are provided, this function returns the fill-ins generated after the last node elimination

Reimplemented from gum::EliminationSequenceStrategy.

Definition at line 225 of file defaultEliminationSequenceStrategy.cpp.

References gum::Set< Key, Alloc >::emplace().

225  {
226  if (!provide_fill_ins__ || (simplicial_set__ == nullptr))
228  else
229  return simplicial_set__->fillIns();
230  }
virtual const EdgeSet & fillIns()
in case fill-ins are provided, this function returns the fill-ins due to all the nodes eliminated so ...
bool provide_fill_ins__
indicates whether we compute new fill-ins
SimplicialSet * simplicial_set__
the simplicial set used for determining the best nodes to eliminate
const EdgeSet & fillIns() const
returns the set of all the fill-ins added to the graph so far
+ Here is the call graph for this function:

◆ graph()

INLINE UndiGraph * gum::EliminationSequenceStrategy::graph ( ) const
noexceptinherited

returns the current graph

Definition at line 36 of file eliminationSequenceStrategy_inl.h.

References gum::Set< Key, Alloc >::emplace().

36  {
37  return graph_;
38  }
UndiGraph * graph_
the graph to be triangulated
+ Here is the call graph for this function:

◆ newFactory()

DefaultEliminationSequenceStrategy * gum::DefaultEliminationSequenceStrategy::newFactory ( ) const
finalvirtual

creates a new elimination sequence of the same type as the current object, but this sequence contains only an empty graph

Warning
you must deallocate by yourself the object returned
Returns
an empty clone of the current object with the same type

Implements gum::UnconstrainedEliminationSequenceStrategy.

Definition at line 103 of file defaultEliminationSequenceStrategy.cpp.

References gum::Set< Key, Alloc >::emplace().

103  {
106  }
double simplicial_ratio__
the ratio used by simplicial_set__ for its quasi-simplicial nodes
DefaultEliminationSequenceStrategy(double theRatio=GUM_QUASI_RATIO, double theThreshold=GUM_WEIGHT_THRESHOLD)
default constructor (uses an empty graph)
double simplicial_threshold__
the threshold used by simplicial_set__ to determine small cliques
+ Here is the call graph for this function:

◆ nextNodeToEliminate()

NodeId gum::DefaultEliminationSequenceStrategy::nextNodeToEliminate ( )
finalvirtual

returns the new node to be eliminated within the triangulation algorithm

Exceptions
NotFoundexception is thrown if there is no more node to eliminate in the graph

Implements gum::EliminationSequenceStrategy.

Definition at line 158 of file defaultEliminationSequenceStrategy.cpp.

References gum::Set< Key, Alloc >::emplace().

158  {
159  // if there is no simplicial set, send an exception
160  if (graph_ == nullptr) { GUM_ERROR(NotFound, "the graph is empty"); }
161 
162  // select a node to be eliminated: try simplicial nodes, then almost
163  // simplicial nodes, then quasi-simplicial nodes
164  // note that if graph__ != 0, simplicial_set__ has been allocated
171  else {
172  // here: select the node through Kjaerulff's heuristic
173  auto iter_heuristic = log_weights__.cbegin();
174 
175  if (iter_heuristic == log_weights__.cend())
176  GUM_ERROR(NotFound, "there exists no more node to eliminate");
177 
178  double min_weight = iter_heuristic.val();
179  NodeId removable_node = iter_heuristic.key();
180  for (++iter_heuristic; iter_heuristic != log_weights__.cend();
181  ++iter_heuristic) {
182  if (iter_heuristic.val() < min_weight) {
183  removable_node = iter_heuristic.key();
184  min_weight = iter_heuristic.val();
185  }
186  }
187 
188  return removable_node;
189  }
190  }
NodeId bestQuasiSimplicialNode()
gets a quasi simplicial node with the lowest clique weight
NodeProperty< double > log_weights__
for each node, the weight of the clique created by the node&#39;s elimination
bool hasQuasiSimplicialNode()
indicates whether there exists a quasi simplicial node
bool hasAlmostSimplicialNode()
indicates whether there exists an almost simplicial node
SimplicialSet * simplicial_set__
the simplicial set used for determining the best nodes to eliminate
bool hasSimplicialNode()
indicates whether there exists a simplicial node
NodeId bestAlmostSimplicialNode()
gets the almost simplicial node with the lowest clique weight
NodeId bestSimplicialNode()
returns the simplicial node with the lowest clique weight
UndiGraph * graph_
the graph to be triangulated
Size NodeId
Type for node ids.
Definition: graphElements.h:97
#define GUM_ERROR(type, msg)
Definition: exceptions.h:54
+ Here is the call graph for this function:

◆ providesFillIns()

bool gum::DefaultEliminationSequenceStrategy::providesFillIns ( ) const
finalvirtual

indicates whether the fill-ins generated by the eliminated nodes, if needed, will be computed by the elimination sequence, or need be computed by the triangulation itself.

indicates whether the new fill-ins generated by a new eliminated node, if needed, will be computed by the elimination sequence, or need be computed by the triangulation itself.

An elimination sequence provides fill-ins to its triangulation if and only if it has the ability to compute them and it has been asked to do so (by method askFillIns)

Implements gum::EliminationSequenceStrategy.

Definition at line 205 of file defaultEliminationSequenceStrategy.cpp.

References gum::Set< Key, Alloc >::emplace().

205  {
206  return provide_fill_ins__;
207  }
bool provide_fill_ins__
indicates whether we compute new fill-ins
+ Here is the call graph for this function:

◆ providesGraphUpdate()

bool gum::DefaultEliminationSequenceStrategy::providesGraphUpdate ( ) const
finalvirtual

indicates whether the elimination sequence updates by itself the graph after a node has been eliminated

Some algorithms have more informations than the triangulation algorithm to update the graph after a node has been eliminated. They can thus exploit these informations to update the graph faster than the triangulation. Hence the latter should delegate this operation to the elimination sequence. This is the case, for instance, for the defaultEliminationSequence, which uses a SimplicialSet that knows that some eliminated nodes do not require any fill-in.

Implements gum::EliminationSequenceStrategy.

Definition at line 211 of file defaultEliminationSequenceStrategy.cpp.

211  {
212  return true;
213  }

◆ setGraph()

bool gum::DefaultEliminationSequenceStrategy::setGraph ( UndiGraph graph,
const NodeProperty< Size > *  dom_sizes 
)
finalvirtual

sets a new graph to be triangulated

The elimination sequence algorithm reinitializes its data to start a new triangulation with Graph "graph"

Parameters
graphthe new graph to be triangulated
dom_sizesthe domain sizes of the variables/nodes
Returns
true if the data structures were modified (if the graph or the
Warning
Note that we allow dom_sizes to be defined over nodes/variables that do not belong to graph. These sizes will simply be ignored. However, it is compulsory that all the nodes of graph belong to dom_sizes
the graph is altered during the triangulation.
note that, by aGrUM's rule, the graph and the domain sizes are not copied but only referenced by the elimination sequence algorithm.

Reimplemented from gum::EliminationSequenceStrategy.

Definition at line 135 of file defaultEliminationSequenceStrategy.cpp.

References gum::Set< Key, Alloc >::emplace().

137  {
140  return true;
141  }
142 
143  return false;
144  }
void createSimplicialSet__()
create a new simplicial set suited for the current graph
UndiGraph * graph() const noexcept
returns the current graph
virtual bool setGraph(UndiGraph *graph, const NodeProperty< Size > *dom_sizes)
sets a new graph to be triangulated
+ Here is the call graph for this function:

Member Data Documentation

◆ domain_sizes_

const NodeProperty< Size >* gum::EliminationSequenceStrategy::domain_sizes_ {nullptr}
protectedinherited

the domain sizes of the variables/nodes

Definition at line 158 of file eliminationSequenceStrategy.h.

◆ graph_

UndiGraph* gum::EliminationSequenceStrategy::graph_ {nullptr}
protectedinherited

the graph to be triangulated

Definition at line 155 of file eliminationSequenceStrategy.h.

◆ log_domain_sizes_

NodeProperty< double > gum::EliminationSequenceStrategy::log_domain_sizes_
protectedinherited

the log of the domain sizes of the variables/nodes

Definition at line 161 of file eliminationSequenceStrategy.h.

◆ log_weights__

NodeProperty< double > gum::DefaultEliminationSequenceStrategy::log_weights__
private

for each node, the weight of the clique created by the node's elimination

Definition at line 222 of file defaultEliminationSequenceStrategy.h.

◆ provide_fill_ins__

bool gum::DefaultEliminationSequenceStrategy::provide_fill_ins__ {false}
private

indicates whether we compute new fill-ins

Definition at line 234 of file defaultEliminationSequenceStrategy.h.

◆ simplicial_ratio__

double gum::DefaultEliminationSequenceStrategy::simplicial_ratio__
private

the ratio used by simplicial_set__ for its quasi-simplicial nodes

Definition at line 228 of file defaultEliminationSequenceStrategy.h.

◆ simplicial_set__

SimplicialSet* gum::DefaultEliminationSequenceStrategy::simplicial_set__ {nullptr}
private

the simplicial set used for determining the best nodes to eliminate

Definition at line 225 of file defaultEliminationSequenceStrategy.h.

◆ simplicial_threshold__

double gum::DefaultEliminationSequenceStrategy::simplicial_threshold__
private

the threshold used by simplicial_set__ to determine small cliques

Definition at line 231 of file defaultEliminationSequenceStrategy.h.


The documentation for this class was generated from the following files: