aGrUM  0.14.2
orderedTriangulation.h
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright (C) 2005 by Christophe GONZALES and Pierre-Henri WUILLEMIN *
3  * {prenom.nom}_at_lip6.fr *
4  * *
5  * This program is free software; you can redistribute it and/or modify *
6  * it under the terms of the GNU General Public License as published by *
7  * the Free Software Foundation; either version 2 of the License, or *
8  * (at your option) any later version. *
9  * *
10  * This program is distributed in the hope that it will be useful, *
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13  * GNU General Public License for more details. *
14  * *
15  * You should have received a copy of the GNU General Public License *
16  * along with this program; if not, write to the *
17  * Free Software Foundation, Inc., *
18  * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
19  ***************************************************************************/
26 #ifndef GUM_ORDERED_TRIANGULATION_H
27 #define GUM_ORDERED_TRIANGULATION_H
28 
29 #include <vector>
30 
34 
35 namespace gum {
36 
37 
46  public:
47  // ############################################################################
49  // ############################################################################
51 
53 
59  const OrderedEliminationSequenceStrategy& elimSeq =
62  bool minimality = false);
63 
65 
83  const UndiGraph* graph,
84  const NodeProperty< Size >* domsizes,
85  const std::vector< NodeId >* sequence,
86  const OrderedEliminationSequenceStrategy& elimSeq =
89  bool minimality = false);
90 
93 
96 
103  virtual OrderedTriangulation* newFactory() const final;
104 
106  virtual OrderedTriangulation* copyFactory() const final;
107 
109  virtual ~OrderedTriangulation();
110 
112 
113  // ############################################################################
115  // ############################################################################
117 
119 
126  virtual void setGraph(const UndiGraph* graph,
127  const NodeProperty< Size >* domsizes) final;
128 
130 
132  virtual void setOrder(const std::vector< NodeId >* order) final;
133 
135 
136  protected:
138 
147  virtual void _initTriangulation(UndiGraph& graph) final;
148 
149 
151 
152  const std::vector< NodeId >* __order{nullptr};
153 
155 
156  private:
159  };
160 
161 } /* namespace gum */
162 
163 #endif /* GUM_ORDERED_TRIANGULATION_H */
virtual ~OrderedTriangulation()
destructor
An Elimination sequence algorithm that imposes a given complete ordering on the nodes elimination seq...
gum is the global namespace for all aGrUM entities
Definition: agrum.h:25
OrderedTriangulation(const OrderedEliminationSequenceStrategy &elimSeq=OrderedEliminationSequenceStrategy(), const JunctionTreeStrategy &JTStrategy=DefaultJunctionTreeStrategy(), bool minimality=false)
default constructor
The class for generic Hash Tables.
Definition: hashTable.h:676
virtual OrderedTriangulation * copyFactory() const final
virtual copy constructor
Base Class for all the algorithms producing a junction given a set of cliques/subcliques resulting fr...
base class for all non-incremental triangulations.
const std::vector< NodeId > * __order
the elimination sequence to apply
An Elimination sequence algorithm that imposes a given complete ordering on the nodes elimination seq...
virtual void setOrder(const std::vector< NodeId > *order) final
sets the sequence of elimination (only the reference is stored)
An algorithms producing a junction given the elimination tree produced by the triangulation algorithm...
OrderedTriangulation & operator=(const OrderedTriangulation &)
forbid copy operator
virtual void _initTriangulation(UndiGraph &graph) final
the function called to initialize the triangulation process
virtual OrderedTriangulation * newFactory() const final
returns a fresh triangulation over the same graph and of the same type as the current object (using t...
class for graph triangulations for which we enforce a given complete ordering on the nodes eliminatio...
base class for all non-incremental triangulation methods
Base class for undirected graphs.
Definition: undiGraph.h:106
virtual void setGraph(const UndiGraph *graph, const NodeProperty< Size > *domsizes) final
initialize the triangulation data structures for a new graph
An algorithm producing a junction given the elimination tree produced by a triangulation algorithm...