97 if (
this != &from) {
_noParentNodes_ = std::move(from._noParentNodes_); }
102 switch (change.
type()) {
120 "edge modifications are not "
121 "supported by the No-Parent Nodes structural constraint");
Base class for all oriented graphs.
Exception : operation not allowed.
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 parents for some nodes
NodeSet _noParentNodes_
the ForbiddenArcs on which we perform checks
bool checkArcDeletionAlone(NodeId x, NodeId y) const
checks whether the constraints enable to remove arc (x,y)
StructuralConstraintNoParentNodes & operator=(const StructuralConstraintNoParentNodes &from)
copy operator
bool checkArcTriangleDeletion2Alone(NodeId node1, NodeId node2, NodeId node3) const
checks whether the constraints enable to apply an ArcTriangleDeletion2
StructuralConstraintNoParentNodes()
default constructor
bool checkModificationAlone(const GraphChange &change) const
checks whether the constraints enable to perform a graph change
virtual ~StructuralConstraintNoParentNodes()
destructor
bool checkArcTriangleDeletion1Alone(NodeId node1, NodeId node2, NodeId node3) const
checks whether the constraints enable triangle deletion1
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)
#define GUM_ERROR(type, msg)
include the inlined functions if necessary
the structural constraint for forbidding parents for some nodes during structure learning
the structural constraint for forbidding the creation of some arcs during structure learning