108 switch (change.
type()) {
126 "Graph change operation "
128 <<
" is not supported by the Mandatory Arcs structural constraint");
133 switch (change.
type()) {
150 "Graph change operation "
152 <<
" is not supported by the Mandatory Arcs structural constraint");
Base class for all oriented graphs.
Exception : operation not allowed.
std::string typeAsString() const
returns a string corresponding to the type of the change
NodeId node1() const noexcept
returns the first node involved in the modification
GraphChangeType type() const noexcept
returns the type of the operation
NodeId node2() const noexcept
returns the second node involved in the modification
NodeId node3() const
returns the third node involved in the modification (if any)
the structural constraint indicating that some arcs shall never be removed or reversed
bool checkArcReversalAlone(NodeId x, NodeId y) const
checks whether the constraints enable to reverse arc (x,y)
bool checkArcDeletionAlone(NodeId x, NodeId y) const
checks whether the constraints enable to remove arc (x,y)
StructuralConstraintMandatoryArcs & operator=(const StructuralConstraintMandatoryArcs &from)
copy operator
bool checkModificationAlone(const GraphChange &change) const
checks whether the constraints enable to perform a graph change
StructuralConstraintMandatoryArcs()
default constructor
ArcSet _MandatoryArcs_mandatory_arcs_
the MandatoryArcs on which we perform checks
bool checkArcTriangleDeletion1Alone(NodeId node1, NodeId node2, NodeId node3) const
checks whether the constraints enable to apply an ArcTriangleDeletion1
bool isAlwaysInvalidAlone(const GraphChange &change) const
indicates whether a change will always violate the constraint
bool checkArcTriangleDeletion2Alone(NodeId node1, NodeId node2, NodeId node3) const
checks whether the constraints enable to apply an ArcTriangleDeletion2
bool checkArcAdditionAlone(NodeId x, NodeId y) const
checks whether the constraints enable to add arc (x,y)
virtual ~StructuralConstraintMandatoryArcs()
destructor
#define GUM_ERROR(type, msg)
include the inlined functions if necessary
gum is the global namespace for all aGrUM entities
the structural constraint indicating that some arcs shall never be removed or reversed
the structural constraint indicating that some arcs shall never be removed or reversed