generates a network from the given connection probability
gen.A.from.P.Rd
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.
Arguments
- P
connection probability between nodes
- undirected
logic value. FALSE (default) if the network is undirected, so the adjacency matrix will be symmetric with only upper diagonal entries being generated as independent Bernoulli.