All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GraphUpdater.h
Go to the documentation of this file.
1 /*
2  * GraphUpdater.h
3  *
4  * Created on: 27.12.2013
5  * Author: cls
6  */
7 
8 #ifndef GRAPHUPDATER_H_
9 #define GRAPHUPDATER_H_
10 
11 #include "../graph/Graph.h"
12 #include "../dynamics/GraphEvent.h"
13 
14 namespace NetworKit {
15 
19 class GraphUpdater {
20 
21 public:
22 
23  GraphUpdater(Graph& G);
24 
25  void update(std::vector<GraphEvent>& stream);
26 
27  std::vector<std::pair<count, count> > getSizeTimeline();
28 
29  static bool compare(GraphEvent a, GraphEvent b);
30  static bool equal(GraphEvent a, GraphEvent b);
31 
32 private:
33 
34  Graph& G;
35  std::vector<std::pair<count, count> > size;
36 };
37 
38 } /* namespace NetworKit */
39 
40 #endif /* GRAPHUPDATER_H_ */
Definition: GraphUpdater.h:19
static bool equal(GraphEvent a, GraphEvent b)
std::vector< std::pair< count, count > > getSizeTimeline()
Definition: GraphUpdater.cpp:61
Definition: GraphEvent.h:19
void update(std::vector< GraphEvent > &stream)
Definition: GraphUpdater.cpp:16
A graph (with optional weights) and parallel iterator methods.
Definition: Graph.h:79
static bool compare(GraphEvent a, GraphEvent b)
GraphUpdater(Graph &G)
Definition: GraphUpdater.cpp:13