model_MSM.py

NAME

model_MSM.py - Multi-activity Stochastic Model.

SYNOPSYS

model_MSM.py <node_Bi_file> <M>

DESCRIPTION

This is the Multi-activity Stochastic Model (MSM). In this model each node i is considered active if it was active in the reference multiplex, and is activated on each layer with a probability equal to Bi∕M where Bi was the activity of node i in the reference multiplex.

The file node_Bi_file is in the format:

  node_i Bi)

where Bi is the value of node activity of node_i in the reference multiplex.

The parameter M is the number of layers in the multiplex.

OUTPUT

The program prints on stdout a node-layer list of lines in the format:

  node_i layer_i

where node_i is the ID of a node and layre_i is the ID of a layer. This list indicates which nodes are active in which layer. For instance, the line:

  24 3

indicates that the node with ID 24 is active on layer 3.

REFERENCE

V. Nicosia, V. Latora, “Measuring and modeling correlations in multiplex networks”, Phys. Rev. E 92, 032805 (2015).

Link to paper: http://journals.aps.org/pre/abstract/10.1103/PhysRevE.92.032805