rank_nodes_thresh.py

NAME

rank_nodes_thresh.py - rank the nodes of a layer whose value of a given structural descriptor is above a threshold.

SYNOPSYS

rank_nodes_thresh.py <prop_file> <thresh>

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. The rank of all the nodes whose value of the structural descriptor is smaller than the threshold thresh specified as second parameter is set to 0 (ZERO).

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, or zero if such desxriptor is below the specified threshold thresh.

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