47#ifndef GUM_LEARNING_STRUCTURAL_CONSTRAINT_TOTAL_ORDER_H
48#define GUM_LEARNING_STRUCTURAL_CONSTRAINT_TOTAL_ORDER_H
248#ifndef DOXYGEN_SHOULD_SKIP_THIS
252# define GUM_CONSTRAINT_CLASS_NAME StructuralConstraintTotalOrder
254# undef GUM_CONSTRAINT_CLASS_NAME
Base class for all oriented graphs.
The class for notifying learning algorithms of new arc additions.
The class for notifying learning algorithms of arc removals.
The class for notifying learning algorithms of arc reversals.
The graph change substituting a triangle node1->node2->node3 + node1->node3 into v-structure node2->n...
The graph change substituting a triangle node1->node2->node3 + node1->node3 into v-structure node1->n...
StructuralConstraintTotalOrder()
default constructor
Sequence< NodeId > _total_order_
the total ordering over the nodes
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
void setGraphAlone(const DiGraph &graph)
sets a new graph from which we will perform checkings
bool checkModificationAlone(const ArcTriangleDeletion2 &change) const
checks whether the constraints enable to apply an ArcTriangleDeletion2
void setTotalOrder(const Sequence< NodeId > &Total)
sets the Total order of all the nodes in the property
bool checkModificationAlone(const ArcAddition &change) const
checks whether the constraints enable to add an arc
bool checkModificationAlone(const ArcTriangleDeletion1 &change) const
checks whether the constraints enable to apply an ArcTriangleDeletion1
const Sequence< NodeId > & totalOrder() const
returns the current Total order
void modifyGraphAlone(const ArcAddition &change)
notify the constraint of a modification of the graph
void modifyGraphAlone(const ArcTriangleDeletion1 &change)
notify the constraint of a modification of the graph
bool checkArcAdditionAlone(NodeId x, NodeId y) const
checks whether the constraints enable to add arc (x,y)
bool checkModificationAlone(const ArcReversal &change) const
checks whether the constraints enable to reverse an arc
virtual ~StructuralConstraintTotalOrder()
destructor
void modifyGraphAlone(const GraphChange &change)
notify the constraint of a modification of the graph
bool checkArcTriangleDeletion1Alone(NodeId node1, NodeId node2, NodeId node3) const
checks whether the constraints enable to apply an ArcTriangleDeletion1
StructuralConstraintTotalOrder & operator=(const StructuralConstraintTotalOrder &from)
copy operator
void modifyGraphAlone(const ArcTriangleDeletion2 &change)
notify the constraint of a modification of the graph
bool checkArcReversalAlone(NodeId x, NodeId y) const
checks whether the constraints enable to reverse arc (x,y)
void modifyGraphAlone(const ArcReversal &change)
notify the constraint of a modification of the graph
bool checkModificationAlone(const ArcDeletion &change) const
checks whether the constraints enable to remove an arc
void modifyGraphAlone(const ArcDeletion &change)
notify the constraint of a modification of the graph
bool checkArcDeletionAlone(NodeId x, NodeId y) const
checks whether the constraints enable to remove arc (x,y)
Size NodeId
Type for node ids.
include the inlined functions if necessary
gum is the global namespace for all aGrUM entities
the base class for all structural constraints
the structural constraint imposing a total order over some nodes
the base class for all structural constraints