rank_nodes.py

NAME

rank_nodes.py - rank the nodes of a layer according to a given structural descriptor.

SYNOPSYS

rank_nodes.py <prop_file>

DESCRIPTION

Get a file as input, whose n-th line corresponds to the value of a certain property of the n-th node, and rank the nodes according to that property, taking into account ranking ties properly.

For example, if propfile contains the degrees of the nodes at a certain layer of the multiplex, the computes the ranking induced by degrees, where the node with the highest degree will be assigned a rank equal to 1 (one).

OUTPUT

The program prints on stdout a list of lines, where the n-th line contains the rank of the n-th node corresponding to the values of the structural descriptor provided in the input file.

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