78 for (
auto iter = order.
cbegin(); iter != order.
cend(); ++iter) {
79 _graph_.addNodeWithId(iter.key());
135 switch (change.
type()) {
152 "Graph change operation "
154 <<
" is not supported by the SliceOrder structural constraint");
159 switch (change.
type()) {
177 "edge modifications are not "
178 "supported by the Slice Order structural constraint");
Base class for all oriented graphs.
const const_iterator & cend() const noexcept
Returns the unsafe const_iterator pointing to the end of the hashtable.
const_iterator cbegin() const
Returns an unsafe const_iterator pointing to the beginning of the hashtable.
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 base class for structural constraints used by learning algorithms that learn a directed graph str...
StructuralConstraintDiGraph & operator=(const StructuralConstraintDiGraph &from)
copy operator
the structural constraint imposing a partial order over nodes
bool checkArcTriangleDeletion2Alone(NodeId node1, NodeId node2, NodeId node3) const
checks whether the constraints enable to apply an ArcTriangleDeletion2
NodeProperty< NodeId > _SliceOrder_order_
slices to which belong the nodes
bool checkArcDeletionAlone(NodeId x, NodeId y) const
checks whether the constraints enable to remove arc (x,y)
bool checkModificationAlone(const ArcAddition &change) const
checks whether the constraints enable to add an arc
~StructuralConstraintSliceOrder() override
destructor
bool checkArcAdditionAlone(NodeId x, NodeId y) const
checks whether the constraints enable to add arc (x,y)
bool isAlwaysInvalidAlone(const GraphChange &change) const
indicates whether a change will always violate the constraint
StructuralConstraintSliceOrder & operator=(const StructuralConstraintSliceOrder &from)
copy operator
StructuralConstraintSliceOrder()
default constructor
bool checkArcTriangleDeletion1Alone(NodeId node1, NodeId node2, NodeId node3) const
checks whether the constraints enable to apply an ArcTriangleDeletion1
bool checkArcReversalAlone(NodeId x, NodeId y) const
checks whether the constraints enable to reverse arc (x,y)
#define GUM_ERROR(type, msg)
HashTable< NodeId, VAL > NodeProperty
Property on graph elements.
include the inlined functions if necessary
gum is the global namespace for all aGrUM entities
the structural constraint imposing a partial order over nodes
the structural constraint imposing a partial order over nodes