pymnet.er_multilayer

pymnet.er_multilayer(nodes, layers, p, randomWeights=False)

Generate multilayer Erdos-Renyi network.

The produced multilayer network has a single aspect.

Parameters:
nodesint

Number of nodes in the network

layersint or sequence

Number of layers in the network, or a sequence of layer names

pfloat

The edge probability

randomWeightsbool

If true the weights are uniformly random between (0,1].

Returns:
netMultilayerNetwork

The multilayer network that is produced.