25 #ifndef GUM_LEARNING_STRUCTURAL_CONSTRAINT_DAG_H 26 #define GUM_LEARNING_STRUCTURAL_CONSTRAINT_DAG_H 48 StructuralConstraintDiGraph > {
195 #ifndef DOXYGEN_SHOULD_SKIP_THIS 199 # define GUM_CONSTRAINT_CLASS_NAME StructuralConstraintDAG 201 # undef GUM_CONSTRAINT_CLASS_NAME 202 #endif // DOXYGEN_SHOULD_SKIP_THIS 214 #ifndef GUM_NO_INLINE A class for detecting directed cycles in DAGs when trying to apply many changes to the graph...
bool checkModificationAlone(const ArcAddition &change) const
checks whether the constraints enable to add an arc
void setGraph(const DAG &graph)
sets a new graph from which we will perform checkings
The class for notifying learning algorithms of new arc additionsThis class is convenient to know at c...
the base class for structural constraints imposed by DAGs
void setGraphAlone(const DiGraph &graph)
sets a new graph from which we will perform checkings
The class for notifying learning algorithms of arc removalsThis class is convenient to know at compil...
the "meta-programming" class for storing several structural constraints
void modifyGraphAlone(const ArcAddition &change)
notify the constraint of a modification of the graph
gum is the global namespace for all aGrUM entities
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
the base class for structural constraints used by learning algorithms that learn a directed graph str...
the "meta-programming" class for storing structural constraintsIn aGrUM, there are two ways to store ...
bool checkArcReversalAlone(NodeId x, NodeId y) const
checks whether the constraints enable to reverse arc (x,y)
Base class for all oriented graphs.
A class for detecting directed cycles in DAGs when trying to apply many changes to the graph...
StructuralConstraintDAG()
default constructor
bool checkArcDeletionAlone(NodeId x, NodeId y) const
checks whether the constraints enable to remove arc (x,y)
The class for notifying learning algorithms of arc reversalsThis class is convenient to know at compi...
std::size_t Size
In aGrUM, hashed values are unsigned long int.
StructuralConstraintDAG & operator=(const StructuralConstraintDAG &from)
copy operator
virtual ~StructuralConstraintDAG()
destructor
Size NodeId
Type for node ids.
DAGCycleDetector _DAG__cycle_detector
the cycle detector used to check quickly graph modifications
The base class for structural constraints imposed by DAGs.