Span-core Decomposition for Temporal Networks: Algorithms and Applications

Edoardo Galimberti, Martino Ciaperoni, Alain Barrat, Francesco Bonchi, Ciro Cattuto, Francesco Gullo · DOI

Abstract

When analyzing temporal networks, a fundamental task is the identification of dense structures (i.e., groups of vertices that exhibit a large number of links), together with their temporal span (i.e., the period of time for which the high density holds). In this article, we tackle this task by introducing a notion of temporal core decomposition where each core is associated with two quantities, its coreness, which quantifies how densely it is connected, and its span, which is a temporal interval: we call such cores span-cores. For a temporal network defined on a discrete temporal domain T, the total number of time intervals included in T is quadratic in |T|, so that the total number of span-cores is potentially quadratic in |T| as well. Our first main contribution is an algorithm that, by exploiting containment properties among span-cores, computes all the span-cores efficiently. Then, we focus on the problem of finding only the maximal span-cores, i.e., span-cores that are not dominated by any other span-core by both their coreness property and their span. We devise a very efficient algorithm that exploits theoretical findings on the maximality condition to directly extract the maximal ones without computing all span-cores. Finally, as a third contribution, we introduce the problem of temporal community search, where a set of query vertices is given as input, and the goal is to find a set of densely-connected subgraphs containing the query vertices and covering the whole underlying temporal domain T. We derive a connection between this problem and the problem of finding (maximal) span-cores. Based on this connection, we show how temporal community search can be solved in polynomial-time via dynamic programming, and how the maximal span-cores can be profitably exploited to significantly speed-up the basic algorithm. We provide an extensive experimentation on several real-world temporal networks of widely different origins and characteristics. Our results confirm the efficiency and scalability of the proposed methods. Moreover, we showcase the practical relevance of our techniques in a number of applications on temporal networks, describing face-to-face contacts between individuals in schools. Our experiments highlight the relevance of the notion of (maximal) span-core in analyzing social dynamics, detecting/correcting anomalies in the data, and graph-embedding-based network classification.

1. Introduction

In static graph theory, the $k$-core decomposition is a fundamental tool for identifying the dense subgraphs of a network. However, real-world networks—such as social interactions, financial transactions, and sensor data—are inherently temporal. Traditional $k$-core methods often fail to capture the temporal persistence of communities, either by ignoring time entirely or by treating timestamps as independent snapshots.

This paper addresses these challenges by introducing span-cores: subgraphs where every vertex maintains at least $k$ connections throughout a specific, contiguous time interval $\Delta$. The primary difficulty lies in the computational complexity; since the number of possible time intervals is quadratic relative to the number of timestamps ($|T|^2$), a naive search is prohibitive for large-scale datasets.

2. Methods and Algorithms

The authors propose a suite of algorithms designed to navigate the complex search space of span-cores efficiently.

2.1 Span-core Decomposition

The core idea is to exploit horizontal containment: a core valid for a long interval must necessarily be a subset of the cores for its sub-intervals. This property allows for a pruned search space, starting from smaller intervals to bound the search for larger ones.

Extracted figure from page 8 of Span-core Decomposition for Temporal Networks: Algorithms and Applications

As shown in Figure 1, the span-cores form a 3D lattice structure. The algorithms leverage these containment relationships to avoid redundant computations, achieving up to two orders of magnitude speedup over naive approaches.

2.2 Maximal Span-core Mining

In many applications, only the "maximal" cores—those not dominated by any other core in terms of both density ($k$) and duration ($\Delta$)—are of interest. The authors developed a top-down algorithm that extracts these maximal cores directly, significantly reducing memory and time requirements.

2.3 Temporal Community Search (TCS)

The paper also introduces the Temporal Community Search problem: finding a sequence of $h$ communities that cover the entire timeline while maximizing total density. By mapping this to Bellman’s sequence segmentation problem and utilizing maximal span-cores, the authors drastically reduce the search space for the dynamic programming solution.

3. Experimental Evaluation

The methods were evaluated on 11 real-world datasets, including face-to-face contact data (RFID), economic transactions, and large-scale social networks (WikiTalk, StackOverflow).

Key Results: * Efficiency and Scalability: The Span-core algorithm scales linearly with vertices and edges and quadratically with timestamps. On the WikiTalk dataset, it reduced processing time from days to 18 minutes. * Community Search Speedup: The use of maximal span-cores (MSC-TCS) provided a 10x speedup over basic dynamic programming. * Size Reduction: A greedy refinement method successfully filtered "free-rider" vertices, reducing community sizes by up to four orders of magnitude while preserving optimal density.

4. Practical Applications

Beyond algorithmic performance, the paper demonstrates the utility of span-cores in real-world scenarios:

  • Anomaly Detection: In school RFID data, long-lasting span-cores during non-school hours identified sensors left in proximity rather than actual human interactions.
  • Network Classification: The sequence of a vertex's coreness values over time serves as a "temporal signature." This simple embedding performed comparably to complex state-of-the-art methods like node2vec for vertex classification.

5. Conclusion

The span-core decomposition provides a robust framework for analyzing dense, persistent structures in temporal networks. While the current "AND" semantics for edge existence are strict, they offer a manageable search space and meaningful results. Future work may explore relaxed semantics (e.g., fractional thresholds) and the role of span-cores in spreading processes.

Summary updated

BibTeX
@article{galimberti2019span,
  author = {Edoardo Galimberti and Martino Ciaperoni and Alain Barrat and Francesco Bonchi and Ciro Cattuto and Francesco Gullo},
  title = {{Span-core Decomposition for Temporal Networks: Algorithms and Applications}},
  journal = {ACM Trans. Knowl. Discov. Data},
  year = {2019},
  doi = {10.1145/3418226},
}
Figure