26 #ifndef GUM_LEARNING_STRUCTURAL_CONSTRAINT_DIGRAPH_H 27 #define GUM_LEARNING_STRUCTURAL_CONSTRAINT_DIGRAPH_H 180 #ifndef DOXYGEN_SHOULD_SKIP_THIS 184 # define GUM_CONSTRAINT_CLASS_NAME StructuralConstraintDiGraph 186 # undef GUM_CONSTRAINT_CLASS_NAME 187 #endif // DOXYGEN_SHOULD_SKIP_THIS 199 #ifndef GUM_NO_INLINE
Base classes for oriented graphs.
void setGraph(Size nb_nodes)
sets a new empty graph from which we will perform checkings
void modifyGraphAlone(const ArcAddition &change)
notify the constraint of a modification of the graph
the classes to account for structure changes in a graph
The class for notifying learning algorithms of new arc additionsThis class is convenient to know at c...
The class for notifying learning algorithms of arc removalsThis class is convenient to know at compil...
the base class for all structural constraints
the base class for structural constraints used by learning algorithms that learn a directed graph str...
void setGraphAlone(const DiGraph &graph)
sets a new graph from which we will perform checkings
gum is the global namespace for all aGrUM entities
StructuralConstraintDiGraph & operator=(const StructuralConstraintDiGraph &from)
copy operator
DiGraph _DiGraph__graph
the DiGraph on which we perform checks
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)
the base class for all structural constraints
Base class for all oriented graphs.
bool isAlwaysInvalidAlone(const GraphChange &change) const
indicates whether a change will always violate the constraint
The class for notifying learning algorithms of arc reversalsThis class is convenient to know at compi...
bool checkArcDeletionAlone(NodeId x, NodeId y) const
checks whether the constraints enable to remove arc (x,y)
virtual ~StructuralConstraintDiGraph()
destructor
StructuralConstraintDiGraph()
default constructor
std::size_t Size
In aGrUM, hashed values are unsigned long int.
bool checkModificationAlone(const GraphChange &change) const
checks whether the constraints enable to perform a graph change
The base class for structural constraints used by learning algorithms that learn a directed graph str...
Size NodeId
Type for node ids.