pymnet.single_layer_er

pymnet.single_layer_er(net, nodes, p=None, edges=None)

Generates a realization of a monoplex Erdos-Renyi network.

Parameters:
netMultilayerNetwork with aspects=0

Empty network object that is to be filled.

nodesiterable

Sequence of node labels.

pfloat

Probability that edges is present.

edgesint

Number of edges that are present.

References

Efficient generation of large random networks. PRE 71, 036113 (2005)