All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
StochasticBlockmodel.h
Go to the documentation of this file.
1 /*
2 * StochasticBlockmodel.h
3 *
4 * Created on: 13.08.2014
5 * Author: Christian Staudt
6 */
7 
8 #ifndef STOCHASTICBLOCKMODEL_H_
9 #define STOCHASTICBLOCKMODEL_H_
10 
11 #include "StaticGraphGenerator.h"
12 
13 namespace NetworKit {
14 
15 
17 
18 public:
27  StochasticBlockmodel(count n, count nBlocks, const std::vector<index>& membership, const std::vector<std::vector<double> >& affinity);
28 
29  virtual Graph generate();
30 
31 protected:
34  std::vector<index> membership;
35  std::vector<std::vector<double> > affinity;
36 
37 };
38 
39 } /* namespace NetworKit */
40 #endif /* STOCHASTICBLOCKMODEL_H_ */
std::vector< std::vector< double > > affinity
Definition: StochasticBlockmodel.h:35
Abstract base class for static graph generators.
Definition: StaticGraphGenerator.h:19
Definition: StochasticBlockmodel.h:16
virtual Graph generate()
Definition: StochasticBlockmodel.cpp:24
count nBlocks
Definition: StochasticBlockmodel.h:33
count n
Definition: StochasticBlockmodel.h:32
uint64_t count
Definition: Globals.h:21
std::vector< index > membership
Definition: StochasticBlockmodel.h:34
StochasticBlockmodel(count n, count nBlocks, const std::vector< index > &membership, const std::vector< std::vector< double > > &affinity)
Construct a undirected regular ring lattice.
Definition: StochasticBlockmodel.cpp:13
A graph (with optional weights) and parallel iterator methods.
Definition: Graph.h:79