Learn R Programming

NetworkReg (version 1.1)

net.gen.from.P: generates a network from the given connection probability

Description

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.

Usage

net.gen.from.P(P, mode = "undirected")

Value

An adjacency matrix

Arguments

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.

Author

Can M. Le and Tianxi Li.

Maintainer: Tianxi Li <tianxili@umn.edu>