29 #ifndef GUM_LEARNING_STRUCTURAL_CONSTRAINT_MANDATORY_ARCS_H 30 #define GUM_LEARNING_STRUCTURAL_CONSTRAINT_MANDATORY_ARCS_H 187 #ifndef DOXYGEN_SHOULD_SKIP_THIS 191 # define GUM_CONSTRAINT_CLASS_NAME StructuralConstraintMandatoryArcs 193 # undef GUM_CONSTRAINT_CLASS_NAME 194 #endif // DOXYGEN_SHOULD_SKIP_THIS 206 #ifndef GUM_NO_INLINE bool checkArcReversalAlone(NodeId x, NodeId y) const
checks whether the constraints enable to reverse arc (x,y)
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
const ArcSet & arcs() const
returns the set of mandatory arcs
ArcSet _MandatoryArcs__mandatory_arcs
the MandatoryArcs on which we perform checks
bool isAlwaysInvalidAlone(const GraphChange &change) const
indicates whether a change will always violate the constraint
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...
StructuralConstraintMandatoryArcs()
default constructor
void setArcs(const ArcSet &set)
assign a set of forbidden arcs
the structural constraint indicating that some arcs shall never be removed or reversed ...
void addArc(const Arc &arc)
assign a new forbidden arc
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.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
bool checkArcDeletionAlone(NodeId x, NodeId y) const
checks whether the constraints enable to remove arc (x,y)
The base class for all directed edgesThis class is used as a basis for manipulating all directed edge...
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
virtual ~StructuralConstraintMandatoryArcs()
destructor
Base class for all oriented graphs.
void modifyGraphAlone(const ArcAddition &change)
notify the constraint of a modification of the graph
void eraseArc(const Arc &arc)
remove a forbidden arc
void setGraphAlone(const DiGraph &graph)
sets a new graph from which we will perform checkings
bool checkArcAdditionAlone(NodeId x, NodeId y) const
checks whether the constraints enable to add arc (x,y)
The class for notifying learning algorithms of arc reversalsThis class is convenient to know at compi...
Size NodeId
Type for node ids.
StructuralConstraintMandatoryArcs & operator=(const StructuralConstraintMandatoryArcs &from)
copy operator
bool checkModificationAlone(const GraphChange &change) const
checks whether the constraints enable to perform a graph change