All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DynAlgorithm.h
Go to the documentation of this file.
1 #ifndef DYNALGORITHM_H
2 #define DYNALGORITHM_H
3 
4 #include <string>
5 #include <stdexcept>
6 #include "../dynamics/GraphEvent.h"
7 
8 namespace NetworKit {
9 
10 class DynAlgorithm {
11 
12 public:
16  virtual ~DynAlgorithm() = default;
17 
21  virtual void update(GraphEvent e) = 0;
22 
26  virtual void updateBatch(const std::vector<GraphEvent>& batch) = 0;
27 
28 };
29 
30 } /* NetworKit */
31 
32 #endif /* DYNALGORITHM_H */
virtual ~DynAlgorithm()=default
Virtual default destructor.
Definition: DynAlgorithm.h:10
virtual void update(GraphEvent e)=0
The generic update method for updating data structure after an update.
Definition: GraphEvent.h:19
virtual void updateBatch(const std::vector< GraphEvent > &batch)=0
The generic update method for updating data structure after a batch of updates.