cartography_from_deg_vectors.py

NAME

cartography_from_deg_vectors.py - create a multiplex cartography diagram.

SYNOPSYS

cartography_from_deg_vectors.py <node_deg_vectors>

DESCRIPTION

Compute and print on output the total degree and the multiplex participation coefficient of all the nodes of a multiplex network whose list of node degree vectors is provided as input. The input file is in the format:

  IDn_deg1 IDn_deg_2 ... IDn_degM

where IDn_degX is the degree of node n at layer X. The input file can be generated using the script node_degree_vectors.py.

OUTPUT

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

  tot_deg part_coeff

where tot_deg is the total degree of the node and part_coeff is the corresponding participation coefficient.

As usual, node IDs start from zero and proceed sequentially, without gaps, so if one of the lines in the input files contains just zeros, the program considers the corresponding node as being isolated on all the layers, and both its total degree and multiplex participation coefficient are set equal to zero.

REFERENCE

F. Battiston, V. Nicosia, V. Latora, “Structural measures for multiplex networks”, Phys. Rev. E 89, 032804 (2014).

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