net.gen.from.P | R Documentation |
Generates an adjacency matrix from a given probability matrix, according independent Bernoulli – the so-called inhomogeneous Erdos-Renyi model. It is used to generate new networks from a given model.
net.gen.from.P(P, mode = "undirected")
P |
connection probability between nodes |
mode |
"undirected" (default) if the network is undirected, so the adjacency matrix will be symmetric with only upper diagonal entries being generated as independent Bernoulli. Otherwise, the adjacency matrix gives independent Bernoulli everywhere. |
An adjacency matrix
Can M. Le and Tianxi Li.
Maintainer: Tianxi Li <tianxili@umn.edu>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.