Hostname: page-component-74656f9884-kv2lp Total loading time: 0 Render date: 2026-11-06T00:42:58.789Z Has data issue: false hasContentIssue false

A network community detection method with integration of data from multiple layers and node attributes

Published online by Cambridge University Press:  07 March 2023

Hannu Reittu*
Affiliation:
VTT Technical Research Centre of Finland, Espoo, Finland
Lasse Leskelä
Affiliation:
School of Science, Department of Mathematics and System Analysis, Aalto University, Espoo, Finland
Tomi Räty
Affiliation:
Microsoft, One Microsoft Way, Redmond, WA, USA
*
*Corresponding author. Email: hannu.reittu@vtt.fi
Rights & Permissions [Opens in a new window]

Abstract

Multilayer networks are in the focus of the current complex network study. In such networks, multiple types of links may exist as well as many attributes for nodes. To fully use multilayer—and other types of complex networks in applications, the merging of various data with topological information renders a powerful analysis. First, we suggest a simple way of representing network data in a data matrix where rows correspond to the nodes and columns correspond to the data items. The number of columns is allowed to be arbitrary, so that the data matrix can be easily expanded by adding columns. The data matrix can be chosen according to targets of the analysis and may vary a lot from case to case. Next, we partition the rows of the data matrix into communities using a method which allows maximal compression of the data matrix. For compressing a data matrix, we suggest to extend so-called regular decomposition method for non-square matrices. We illustrate our method for several types of data matrices, in particular, distance matrices, and matrices obtained by augmenting a distance matrix by a column of node degrees, or by concatenating several distance matrices corresponding to layers of a multilayer network. We illustrate our method with synthetic power-law graphs and two real networks: an Internet autonomous systems graph and a world airline graph. We compare the outputs of different community recovery methods on these graphs and discuss how incorporating node degrees as a separate column to the data matrix leads our method to identify community structures well-aligned with tiered hierarchical structures commonly encountered in complex scale-free networks.

Information

Type
Research Article
Copyright
© The Author(s), 2023. Published by Cambridge University Press
Figure 0

Figure 1. Pseudocode for the regular decomposition algorithm according to Reittu et al. (2018).

Figure 1

Figure 2. The adjacency matrix of a synthetic power-law graph ($n=7775$) with rows and columns organized according to (a) random order of nodes, (b) communities identified by distance matrix, (c) communities identified by distance matrix and degrees (right).

Figure 2

Figure 3. Degrees of nodes in a synthetic power-law graph ($n=7775$) sorted from largest to smallest within each community (indicated by color). (a) Full graph viewed as one community. (b) Nodes organized into communities identified by distance matrix. (c) Nodes organized into communities identified by distance matrix and degrees.

Figure 3

Figure 4. Topology of a synthetic power-law graph ($n=7775$) colored according to the community structure identified by the regular decomposition algorithm with (a) distance matrix, (b) distance matrix and degrees.

Figure 4

Figure 5. The adjacency matrix of the AS graph ($n=22963$) with rows and columns organized according to (a) raw data, (b) communities identified by distance matrix, (c) communities identified by distance matrix and degrees.

Figure 5

Figure 6. Degrees of nodes in the AS graph ($n=22963$) sorted from largest to smallest within each community (indicated by color). (a) Full graph viewed as one community. (b) Nodes organized into communities identified by distance matrix. (c) Nodes organized into communities identified by distance matrix and degrees.

Figure 6

Figure 7. Subgraph of the AS graph induced by the smallest community identified by regular decomposition using distances and degrees.

Figure 7

Figure 8. Subgraphs of the AS graph induced by the second (a) and third (b) smallest communities identified by regular decomposition using distances and degrees. Ten nodes of highest overall degree in the second smallest community are highlighted in red: 1. Net Access Corporation, 2. Microsoft, 3. London Interconnection Point, 4. BT, 5. Internet Initiative Japan, 6. Frontier Communications of America, 7. MCI Communications Services, 8. INAP, 9. TransTeleCom, and 10. Telstra.

Figure 8

Figure 9. Geographic projection of the world airline graph.

Figure 9

Figure 10. Top: Gray-scale visualization of the data matrix of the world airline graph. The white elements correspond to undefined distances. The matrix has $691$ rows (airports) and $4146$ columns (directed graph distances in three layers). Each layer occupies a band of columns of equal width and is roughly visible in the picture. Bottom: The same data matrix with rows reorganized into six communities identified by regular decomposition using layerwise distances.

Figure 10

Figure 11. Communities of the world airline graph identified by (a) regular decomposition using layerwise distances, (b) SBM fitting with a layer-aggregated adjacency matrix.

Figure 11

Figure 12. Adjacency matrix of the AS graph organized according to (a) 25 communities identified by modularity maximization, (b) 10 communities identified by SBM fitting.

Figure 12

Figure 13. Subgraphs of the AS graph induced by the $25$ communities identified by modularity maximization.

Figure 13

Figure 14. A subgraph of the AS graph induced by two distinct communities (red, blue) identified by SBM fitting. The nodes of the blue community are almost entirely low-degree neighbors of the nodes in the red community.

Figure 14

Figure 15. PageRank centrality of AS graph nodes in communities identified using three alternative methods and sorted from smallest to largest within each community (indicated by color). (a) Modularity maximization, (b) RD using distances, (c) RD using distances and degrees. Only the last method can group the most central nodes into separate communities, indicated by blue and orange circles in (c).

Figure 15

Figure 16. Largest community (highlighted in red) of the world airline graph identified using (a) regular decomposition using layerwise distances, (b) SBM fitting with a layer-aggregated adjacency matrix.

Figure 16

Figure 17. Overlap of communities determined by SBM fitting using layer-aggregated graph (row index) and by regular decomposition using layerwise distances (column index). The $(i,j)$-entry is computed as the number of common nodes in community pair $(i,j)$ divided by the number of nodes in the larger community in the pair. Only the pair $(3,6)$ indicates a substantial value around $0.5$. This pair corresponds to the peripheral communities highlighted in Figure 16.

Figure 17

Table 1. Compression ratio for the AS graph and the world airline graph using three methods: zlib compression algorithm, RD using distances, and RD using distances and degrees