model_hypergeometric.py

NAME

model_hypergeometric.py - Hypergeometric node activity null model.

SYNOPSYS

model_hypergeometric.py <layer_N_file> <N>

DESCRIPTION

This is the hypergeometric model of node activation. In this model each layer has exactly the same number of active node of a reference multiplex network, but nodes on each layer are activated uniformly at random, thus destroying all inter-layer activity correlation patterns.

The file layer_N_file reports on the n-th line the number of active nodes on the n-th layer (starting from zero). The second parameter N is the total number of active nodes 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