27 #ifndef GUM_LEARNING_IGRAPH_CHANGES_GENERATOR_4_DIGRAPH_H 28 #define GUM_LEARNING_IGRAPH_CHANGES_GENERATOR_4_DIGRAPH_H 30 #include <agrum/agrum.h> 31 #include <agrum/tools/core/set.h> 32 #include <agrum/tools/graphs/diGraph.h> 33 #include <agrum/BN/learning/structureUtils/graphChange.h> 66 virtual void setGraph(
const DiGraph& graph) = 0;
69 virtual void modifyGraph(
const ArcAddition& change) = 0;
72 virtual void modifyGraph(
const ArcDeletion& change) = 0;
75 virtual void modifyGraph(
const ArcReversal& change) = 0;
78 virtual void modifyGraph(
const GraphChange& change) = 0;
virtual void setGraph(const DiGraph &graph)=0
sets a new graph from which the operator will compute possible changes
INLINE void emplace(Args &&... args)
virtual void modifyGraph(const GraphChange &change)=0
notify the operator set of a change applied to the graph
virtual iterator begin() const =0
returns an (unsafe) iterator on the beginning of the list of operators
virtual const iterator & end() const =0
returns an (unsafe) iterator on the end of the list of operators
virtual void clearChanges() noexcept=0
empty the set of possible change operators that can be applied
virtual void notifyGetCompleted()=0
notifies the generator that we have parsed all its legal changes
Database(const std::string &filename, const BayesNet< GUM_SCALAR > &bn, const std::vector< std::string > &missing_symbols)