Sample from a degree-corrected planted partition model

sample_dcpp(
  n,
  lambda,
  K,
  oir,
  theta = NULL,
  pri = rep(1, K)/K,
  normalize_theta = F
)

Arguments

n

number of nodes

lambda

average degree

K

number of communities

oir

out-in ratio

theta

propensity parameter, if not given will be samples from a Pareto distribution with scale parameter 2/3 and shape parameter 3

pri

prior distribution of node labels

normalize_theta

whether to normalize theta so that max(theta) == 1

Value

an adjacency matrix following a degree-corrected planted parition model