29 #ifndef GUM_LEARNING_STRUCTURAL_CONSTRAINT_DIGRAPH_H 30 #define GUM_LEARNING_STRUCTURAL_CONSTRAINT_DIGRAPH_H 183 #ifndef DOXYGEN_SHOULD_SKIP_THIS 187 # define GUM_CONSTRAINT_CLASS_NAME StructuralConstraintDiGraph 189 # undef GUM_CONSTRAINT_CLASS_NAME 190 #endif // DOXYGEN_SHOULD_SKIP_THIS 202 #ifndef GUM_NO_INLINE
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
void setGraph(Size nb_nodes)
sets a new empty graph from which we will perform checkings
void modifyGraphAlone(const ArcAddition &change)
notify the constraint of a modification of the graph
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
The class for notifying learning algorithms of new arc additionsThis class is convenient to know at c...
The class for notifying learning algorithms of arc removalsThis class is convenient to know at compil...
the base class for all structural constraints
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
void setGraphAlone(const DiGraph &graph)
sets a new graph from which we will perform checkings
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
StructuralConstraintDiGraph & operator=(const StructuralConstraintDiGraph &from)
copy operator
DiGraph _DiGraph__graph
the DiGraph on which we perform checks
bool checkArcReversalAlone(NodeId x, NodeId y) const
checks whether the constraints enable to reverse arc (x,y)
bool checkArcAdditionAlone(NodeId x, NodeId y) const
checks whether the constraints enable to add arc (x,y)
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Base class for all oriented graphs.
bool isAlwaysInvalidAlone(const GraphChange &change) const
indicates whether a change will always violate the constraint
The class for notifying learning algorithms of arc reversalsThis class is convenient to know at compi...
bool checkArcDeletionAlone(NodeId x, NodeId y) const
checks whether the constraints enable to remove arc (x,y)
virtual ~StructuralConstraintDiGraph()
destructor
StructuralConstraintDiGraph()
default constructor
std::size_t Size
In aGrUM, hashed values are unsigned long int.
bool checkModificationAlone(const GraphChange &change) const
checks whether the constraints enable to perform a graph change
The base class for structural constraints used by learning algorithms that learn a directed graph str...
Size NodeId
Type for node ids.