105 switch (change.
type()) {
123 "Graph change operation "
125 <<
" is not supported by the Forbidden Arcs structural constraint");
130 switch (change.
type()) {
147 "Graph change operation "
149 <<
" is not supported by the Forbidden Arcs structural constraint");
The base class for all directed edges.
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 for forbidding the creation of some arcs during structure learning
bool checkModificationAlone(const GraphChange &change) const
checks whether the constraints enable to perform a graph change
virtual ~StructuralConstraintForbiddenArcs()
destructor
bool checkArcTriangleDeletion2Alone(NodeId node1, NodeId node2, NodeId node3) const
checks whether the constraints enable to apply an ArcTriangleDeletion2
ArcSet _forbidden_arcs_
the ForbiddenArcs on which we perform checks
StructuralConstraintForbiddenArcs & operator=(const StructuralConstraintForbiddenArcs &from)
copy operator
bool checkArcReversalAlone(NodeId x, NodeId y) const
checks whether the constraints enable to reverse arc (x,y)
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 checkArcDeletionAlone(NodeId x, NodeId y) const
checks whether the constraints enable to remove arc (x,y)
StructuralConstraintForbiddenArcs()
default constructor
bool checkArcAdditionAlone(NodeId x, NodeId y) const
checks whether the constraints enable to add arc (x,y)
#define GUM_ERROR(type, msg)
include the inlined functions if necessary
gum is the global namespace for all aGrUM entities
the structural constraint for forbidding the creation of some arcs during structure learning
the structural constraint for forbidding the creation of some arcs during structure learning