NAME
cartography_from_columns.py - compute total and participation coefficient of generic structural descriptors of the nodes of a multiplex.
SYNOPSYS
cartography_from_columns.py <filein> <col1> <col2> [<col3>...]
DESCRIPTION
Compute and print on output the sum and the corresponding participation coefficient of a generic structural descriptor of the nodes of a multiplex.
The input file is a generic collection of single-space-separated columns, where each line corresponds to a node. The user must specify the IDs of the columns which contain the node structural descriptors to be used in the cartography diagram. Columns IDs start from ZERO. For example:
python cartography_from_layers.py filein.txt 0 2 4 6 8
will create a cartography diagram assuming that the multiplex network has five layers, and that the node structural descriptors at each layers are contained in the first (0), third (2), fifth (4), seventh (6) and nineth (8) columns of each row.
OUTPUT
The program prints on stdout a list of lines in the format:
tot_n P_n
where tot_n is the sum over the layers of the considered structural descriptor for node n, and P_n is the associated participation coefficient
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