aGrUM  0.14.2
structuralConstraintPattern4UndiGraphHeader.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  ***************************************************************************/
20 
21 // this file should be included at the end of all the StructuralConstraints
22 // header
23 // files (see StructuralConstraintUndiGraph to see how it should be included).
24 
25 #ifdef GUM_CONSTRAINT_CLASS_NAME
26 
27 // ##########################################################################
29 // ##########################################################################
31 
33 void setGraph(const UndiGraph& graph);
34 
36 
38 void modifyGraph(const EdgeAddition& change);
39 
41 
43 void modifyGraph(const EdgeDeletion& change);
44 
46 
48 void modifyGraph(const GraphChange& change);
49 
51 
61 bool isAlwaysInvalid(const GraphChange& change) const;
62 
64 bool checkEdgeAddition(NodeId x, NodeId y) const;
65 
67 bool checkEdgeDeletion(NodeId x, NodeId y) const;
68 
70 bool checkModification(const EdgeAddition& change) const;
71 
73 bool checkModification(const EdgeDeletion& change) const;
74 
76 bool checkModification(const GraphChange& change) const;
77 
79 
80 #endif /* GUM_CONSTRAINT_CLASS_NAME */
Size NodeId
Type for node ids.
Definition: graphElements.h:97