All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DynamicForestFireGenerator.h
Go to the documentation of this file.
1 /*
2  * ForestFireGenerator.h
3  *
4  * Created on: 17.01.2014
5  * Author: cls
6  */
7 
8 #ifndef FORESTFIREGENERATOR_H_
9 #define FORESTFIREGENERATOR_H_
10 
11 #include "DynamicGraphGenerator.h"
12 
13 namespace NetworKit {
14 
27 
28 public:
29 
35  DynamicForestFireGenerator(double p, bool directed, double r = 1.0);
36 
42  std::vector<GraphEvent> generate(count nSteps) override;
43 
44 private:
45 
46  double p;
47  bool directed;
48  double r;
49  bool firstCall;
50  Graph G;
51 
52 };
53 
54 } /* namespace NetworKit */
55 
56 #endif /* FORESTFIREGENERATOR_H_ */
The Forest Fire generative model produces dynamic graphs with the following properties: ...
Definition: DynamicForestFireGenerator.h:26
uint64_t count
Definition: Globals.h:21
Abstract base class for a dynamic graph generator (in the new dynamic architecture).
Definition: DynamicGraphGenerator.h:21
DynamicForestFireGenerator(double p, bool directed, double r=1.0)
Definition: DynamicForestFireGenerator.cpp:19
std::vector< GraphEvent > generate(count nSteps) override
Generate event stream.
Definition: DynamicForestFireGenerator.cpp:23
A graph (with optional weights) and parallel iterator methods.
Definition: Graph.h:79