Description Usage Arguments Value Author(s) References Examples
To generate an adjacency matrix of stochastic blockmodel, degree-corrected block model or cockroach graph model.
1 2 3 |
n1 |
input integer – one quarter of the number of nodes in the graph. |
n |
input integer – the number of nodes in EACH community. |
theta.in |
input real number, which is the probability of a within community edge. |
theta.bw |
input real number, which is the probability of a between community edge. |
theta |
input vector, of dimension number of nodes in ALL communities, with each entry equal to the individual effect of each node. |
K |
input integer – the number of communities. |
seed |
input integer – the random seed you can set. |
an adjacency matrix.
Yang Feng, Richard J. Samworth and Yi Yu
Yang Feng, Richard J. Samworth and Yi Yu, Community Detection via Fused Principal Component Analysis, manuscript. Holland, P.W., Laskey, K.B. and Leinhardt, S., 1983. Stochastic block models: first steps. Social Networks 5, 109-137. Karrer, B. and Newman, M.E.J., 2011. Stochastic blockmodels and community structure in networks. Physical Review E 83, 016107.
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.