All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ClusteredRandomGraphGenerator.h
Go to the documentation of this file.
1 /*
2  * ClusteredRandomGraphGenerator.h
3  *
4  * Created on: 28.02.2014
5  * Author: cls
6  */
7 
8 #ifndef CLUSTEREDRANDOMGRAPHGENERATOR_H_
9 #define CLUSTEREDRANDOMGRAPHGENERATOR_H_
10 
11 #include "StaticGraphGenerator.h"
12 #include "../structures/Partition.h"
13 
14 namespace NetworKit {
15 
23 public:
32  ClusteredRandomGraphGenerator(count n, count k, double pin, double pout);
33 
38  Graph generate() override;
39 
45 
46 private:
47 
48  count n;
49  count k;
50  double pin;
51  double pout;
52  Partition zeta;
53 };
54 
55 } /* namespace NetworKit */
56 
57 #endif /* CLUSTEREDRANDOMGRAPHGENERATOR_H_ */
Abstract base class for static graph generators.
Definition: StaticGraphGenerator.h:19
The ClusteredRandomGraphGenerator class is used to create a clustered random graph.
Definition: ClusteredRandomGraphGenerator.h:22
ClusteredRandomGraphGenerator(count n, count k, double pin, double pout)
Creates a clustered random graph:
Definition: ClusteredRandomGraphGenerator.cpp:14
Implements a partition of a set, i.e.
Definition: Partition.h:31
Partition getCommunities()
Returns the generated ground truth communities.
Definition: ClusteredRandomGraphGenerator.cpp:50
uint64_t count
Definition: Globals.h:21
A graph (with optional weights) and parallel iterator methods.
Definition: Graph.h:79
Graph generate() override
Generates a clustered random graph with the properties given in the constructor.
Definition: ClusteredRandomGraphGenerator.cpp:17