Description Usage Arguments Value
Generate a network edge probability matrix from a specified network model with community structure and a random adjacency matrix
1 2 3 |
n |
the number of nodes |
k |
the number of communities |
sizes |
a vector of community sizes |
B |
a matrix of community-wise edge probabilities.
Ff supplied, it overrides |
p_min |
the minimum within-community edge probability |
p_max |
the maximum within-community edge probability.
It has no effect if argument |
q_min |
the minimum between-community edge probability.
It has no effect if argument |
q_max |
the maximum between-community edge probability |
type |
type of network model. It has to be "plantedsbm", "sbm",
or "assortative". It has no effect if argument |
self_loop |
a logical indicating whether to allow self loops in the network |
perm |
a logical indicating whether to randomly permute the generated edge probability matrix, random adjacency matrix, membership matrix, and label |
A list with the following components:
adjmat |
a random adjacency matrix if |
probmat |
a network edge probability matrix |
membermat |
the membership matrix according to node labels |
label |
the label vector of nodes |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.