Create a degree-corrected planted partition connectivity matrix with a given average expected degree.
pp_conn(
n,
oir,
lambda,
pri,
theta = rep(1, n),
normalize_theta = FALSE,
d = rep(1, length(pri))
)
The connectivity matrix B of the desired DCSBM.
the number of nodes
out-in-ratio
the expected average degree
the prior on community labels
node connection propensity parameter of DCSBM
whether to normalize theta so that max(theta) == 1
diagonal of the connectivity matrix. An all-one vector by default.