dump_k_q

NAME

dump_k_q - compute the degree sequences of two layers of a multiplex.

SYNOPSYS

dump_k_q <layer1> <layer2> <pairing>

DESCRIPTION

Compute and dump on stdout the degree sequences of two layers of a multiplex. The input files layer1 and layer2 contain the (undirected) edge lists of the two layers, 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.

The third file pairing is a list of lines in the format:

  IDL1 IDL2

where IDL1 is the ID of a node on layer 1 and IDL2 is the ID of the same node on layer 2. For instance, the line:

  5 27

indicates that node 5 on layer 1 has ID 27 on layer 2.

OUTPUT

The program prints on stdout the degree of each node on the two layers, in the format:

  ki qi

where ki is the degree of node i on layer 1 and qi is the degree of node i on layer 2.

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

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

V. Nicosia, G. Bianconi, V. Latora, M. Barthelemy, “Non-linear growth and condensation in multiplex networks”, Phys. Rev. E 90, 042807 (2014).

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