Class StochasticBlockmodel

Inheritance Relationships

Base Type

Class Documentation

class StochasticBlockmodel : public NetworKit::StaticGraphGenerator

Public Functions

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

Construct a undirected regular ring lattice.

Parameters:
  • nNodes – number of nodes in target graph

  • n – number of blocks (=k)

  • membership – maps node ids to block ids (consecutive, 0 <= i < nBlocks)

  • affinity – matrix of size k x k with edge probabilities between the blocks

virtual Graph generate() override