All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ErdosRenyiGenerator.h
Go to the documentation of this file.
1 /*
2  * ErdosRenyiGenerator.h
3  *
4  * Created on: 21.01.2014
5  * Author: Henning
6  */
7 
8 #ifndef ERDOSRENYIGENERATOR_H_
9 #define ERDOSRENYIGENERATOR_H_
10 
11 #include "StaticGraphGenerator.h"
12 #include <cmath>
13 
14 namespace NetworKit {
15 
21 protected:
23  double p;
24  bool directed;
25 
26 public:
36  ErdosRenyiGenerator(count nNodes, double prob, bool directed=false);
37 
38  virtual Graph generate();
39 };
40 
41 } /* namespace NetworKit */
42 #endif /* ERDOSRENYIGENERATOR_H_ */
Abstract base class for static graph generators.
Definition: StaticGraphGenerator.h:19
ErdosRenyiGenerator(count nNodes, double prob, bool directed=false)
Creates random graphs in the G(n,p) model.
Definition: ErdosRenyiGenerator.cpp:14
bool directed
Definition: ErdosRenyiGenerator.h:24
uint64_t count
Definition: Globals.h:21
double p
Definition: ErdosRenyiGenerator.h:23
A graph (with optional weights) and parallel iterator methods.
Definition: Graph.h:79
count n
Definition: ErdosRenyiGenerator.h:22
virtual Graph generate()
Definition: ErdosRenyiGenerator.cpp:26
Creates G(n, p) graphs.
Definition: ErdosRenyiGenerator.h:20