103 switch (change.
type()) {
121 "edge modifications are not "
122 "supported by the No-Children Nodes structural constraint");
127 switch (change.
type()) {
142 "edge modifications are not supported "
143 "by the No-Children 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 children for some nodes
bool checkArcReversalAlone(NodeId x, NodeId y) const
checks whether the constraints enable to reverse arc (x,y)
StructuralConstraintNoChildrenNodes()
default constructor
bool checkArcTriangleDeletion2Alone(NodeId node1, NodeId node2, NodeId node3) const
checks whether the constraints enable to apply an ArcTriangleDeletion2
NodeSet _noChildrenNodes_
the set of w nodes without children on which we perform checks
StructuralConstraintNoChildrenNodes & operator=(const StructuralConstraintNoChildrenNodes &from)
copy operator
bool checkArcTriangleDeletion1Alone(NodeId node1, NodeId node2, NodeId node3) const
checks whether the constraints enable to apply an ArcTriangleDeletion1
bool checkArcAdditionAlone(NodeId x, NodeId y) const
checks whether the constraints enable to add arc (x,y)
virtual ~StructuralConstraintNoChildrenNodes()
destructor
bool isAlwaysInvalidAlone(const GraphChange &change) const
indicates whether a change will always violate the constraint
bool checkModificationAlone(const GraphChange &change) const
checks whether the constraints enable to perform a graph change
bool checkArcDeletionAlone(NodeId x, NodeId y) const
checks whether the constraints enable to remove arc (x,y)
#define GUM_ERROR(type, msg)
include the inlined functions if necessary
the structural constraint for forbidding children for some nodes during structure learning
the structural constraint for forbidding the creation of some arcs during structure learning