All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Attributes | List of all members
NetworKit::StochasticBlockmodel Class Reference

#include <StochasticBlockmodel.h>

Public Member Functions

 StochasticBlockmodel (count n, count nBlocks, const std::vector< index > &membership, const std::vector< std::vector< double > > &affinity)
 Construct a undirected regular ring lattice. More...
 
virtual Graph generate ()
 
- Public Member Functions inherited from NetworKit::StaticGraphGenerator
virtual ~StaticGraphGenerator ()=default
 Default destructor. More...
 

Protected Attributes

count n
 
count nBlocks
 
std::vector< indexmembership
 
std::vector< std::vector
< double > > 
affinity
 

Constructor & Destructor Documentation

NetworKit::StochasticBlockmodel::StochasticBlockmodel ( count  n,
count  nBlocks,
const std::vector< index > &  membership,
const std::vector< std::vector< double > > &  affinity 
)

Construct a undirected regular ring lattice.

Parameters
nNodesnumber of nodes in target graph
nnumber of blocks (=k)
membershipmaps node ids to block ids (consecutive, 0 <= i < nBlocks)
affinitymatrix of size k x k with edge probabilities betweeen the blocks

Member Function Documentation

Graph NetworKit::StochasticBlockmodel::generate ( )
virtual

Member Data Documentation

std::vector<std::vector<double> > NetworKit::StochasticBlockmodel::affinity
protected
std::vector<index> NetworKit::StochasticBlockmodel::membership
protected
count NetworKit::StochasticBlockmodel::n
protected
count NetworKit::StochasticBlockmodel::nBlocks
protected

The documentation for this class was generated from the following files: