aGrUM 2.3.2
a C++ library for (probabilistic) graphical models
partialOrderedTriangulation.h
Go to the documentation of this file.
1/****************************************************************************
2 * This file is part of the aGrUM/pyAgrum library. *
3 * *
4 * Copyright (c) 2005-2025 by *
5 * - Pierre-Henri WUILLEMIN(_at_LIP6) *
6 * - Christophe GONZALES(_at_AMU) *
7 * *
8 * The aGrUM/pyAgrum library is free software; you can redistribute it *
9 * and/or modify it under the terms of either : *
10 * *
11 * - the GNU Lesser General Public License as published by *
12 * the Free Software Foundation, either version 3 of the License, *
13 * or (at your option) any later version, *
14 * - the MIT license (MIT), *
15 * - or both in dual license, as here. *
16 * *
17 * (see https://agrum.gitlab.io/articles/dual-licenses-lgplv3mit.html) *
18 * *
19 * This aGrUM/pyAgrum library is distributed in the hope that it will be *
20 * useful, but WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, *
21 * INCLUDING BUT NOT LIMITED TO THE WARRANTIES MERCHANTABILITY or FITNESS *
22 * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *
23 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
24 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, *
25 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR *
26 * OTHER DEALINGS IN THE SOFTWARE. *
27 * *
28 * See LICENCES for more details. *
29 * *
30 * SPDX-FileCopyrightText: Copyright 2005-2025 *
31 * - Pierre-Henri WUILLEMIN(_at_LIP6) *
32 * - Christophe GONZALES(_at_AMU) *
33 * SPDX-License-Identifier: LGPL-3.0-or-later OR MIT *
34 * *
35 * Contact : info_at_agrum_dot_org *
36 * homepage : http://agrum.gitlab.io *
37 * gitlab : https://gitlab.com/agrumery/agrum *
38 * *
39 ****************************************************************************/
40
41
52#ifndef GUM_PARTIAL_ORDERED_TRIANGULATION_H
53#define GUM_PARTIAL_ORDERED_TRIANGULATION_H
54
58
59namespace gum {
60
61
73 public:
74 // ############################################################################
76 // ############################################################################
78
80
87 const JunctionTreeStrategy& JTStrategy
89 bool minimality = false);
90
92
109 const NodeProperty< Size >* domsizes,
110 const List< NodeSet >* partial_order,
113 const JunctionTreeStrategy& JTStrategy
115 bool minimality = false);
116
119
122
130
132 virtual PartialOrderedTriangulation* copyFactory() const final;
133
136
138
139
140 // ############################################################################
142 // ############################################################################
144
146
153 virtual void setGraph(const UndiGraph* graph, const NodeProperty< Size >* domsizes) final;
154
157
159 virtual void setPartialOrder(const List< NodeSet >* partial_order) final;
160
162
163
164 protected:
166
175 virtual void initTriangulation_(UndiGraph& graph) final;
176
179
181
182 private:
185 };
186
187} /* namespace gum */
188
189#endif /* GUM_PARTIAL_ORDERED_TRIANGULATION_H */
An algorithm producing a junction given the elimination tree produced by a triangulation algorithm.
An Elimination sequence algorithm that imposes a given partial ordering on the nodes elimination sequ...
Base Class for all the algorithms producing a junction given a set of cliques/subcliques resulting fr...
Generic doubly linked lists.
Definition list.h:379
Base class for all elimination sequence algorithm that impose a given partial ordering on the nodes e...
virtual void setPartialOrder(const List< NodeSet > *partial_order) final
sets the elimination sequence's partial order (only a reference is stored)
virtual void setGraph(const UndiGraph *graph, const NodeProperty< Size > *domsizes) final
initialize the triangulation data structures for a new graph
virtual PartialOrderedTriangulation * newFactory() const
returns a fresh triangulation (over an empty graph) of the same type as the current object
PartialOrderedTriangulation & operator=(const PartialOrderedTriangulation &)
forbid copy operator
virtual PartialOrderedTriangulation * copyFactory() const final
virtual copy constructor
PartialOrderedTriangulation(const PartialOrderedEliminationSequenceStrategy &elimSeq=DefaultPartialOrderedEliminationSequenceStrategy(), const JunctionTreeStrategy &JTStrategy=DefaultJunctionTreeStrategy(), bool minimality=false)
default constructor
const List< NodeSet > * _partial_order_
the partial ordering to apply to eliminate nodes
virtual void initTriangulation_(UndiGraph &graph) final
the function called to initialize the triangulation process
StaticTriangulation(const EliminationSequenceStrategy &elimSeq, const JunctionTreeStrategy &JTStrategy, bool minimality=false)
default constructor: without any graph
Base class for undirected graphs.
Definition undiGraph.h:128
An algorithms producing a junction given the elimination tree produced by the triangulation algorithm...
An Elimination sequence algorithm that imposes a given partial ordering on the nodes elimination sequ...
HashTable< NodeId, VAL > NodeProperty
Property on graph elements.
gum is the global namespace for all aGrUM entities
Definition agrum.h:46
base class for all non-incremental triangulations.