model_MDM.py

NAME

model_MDM.py - Multi-activity Deterministic Model.

SYNOPSYS

model_MDM.py <Bi_file> <M>

DESCRIPTION

This is the Multi-activity Deterministic Model (MDM). In this model each node i is considered active if it was active in the reference multiplex, maintains the same value of node activity Bi (i.e., the number of layers in which it was active) and is associated an activity vector sampled uniformly at random from the (M Bi) possible activity vectors with Bi non-null entries.

The file Bi_file is in the format:

  Bi N(Bi)

where Bi is a value of node activity and N(Bi) is the number of nodes which had node activity equaly to Bi in the reference multiplex.

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

OUTPUT

The program prints on stdout a distribution of bit-strings, in the format:

  Bi bitstring count

where bitstring is the activity bitstring, Bi is the number of non-zero entries of bitstring and count is the number of times that bitstrings appear in the null model.

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