node_degree_vectors.py

NAME

node_degree_vectors.py - compute the degree vectors of all the nodes of a multiplex network

SYNOPSYS

node_degree_vectors.py <layer1> [<layer2> ...]

DESCRIPTION

Compute and print on output the degree vectors of all the nodes of a multiplex network, whose layers are given as input in the files layer1, layer2, etc.

Each file contains the (undirected) edge list of a layer, and each line is in the format:

  src_ID dest_ID

where src_ID and dest_ID are the IDs of the two endpoints of an edge.

OUTPUT

A list of lines, where the n-th line is the vector of degrees of the n-th node, in the format:

  noden_deg_lay1 noden_deg_lay2 ... noden_deg_layM

As usual, node IDs start from zero and proceed sequentially, without gaps, i.e., if a node ID is not present in any of the layer files given as input, the program considers it as being isolated on all the layers.

REFERENCE

V. Nicosia, G. Bianconi, V. Latora, M. Barthelemy, “Growing multiplex networks”, Phys. Rev. Lett. 111, 058701 (2013).

Link to paper: http://prl.aps.org/abstract/PRL/v111/i5/e058701

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