Making Temporal Betweenness Computation Faster and Restless

Filippo Brunelli, Pierluigi Crescenzi, Laurent ViennotKDD 2024 · DOI

Abstract

Betweenness centrality is a fundamental metric for identifying critical nodes in a network. However, its computation in temporal graphs—where edges exist only at specific times—has historically been computationally prohibitive or limited by assumptions of "perfect patience." This paper introduces a novel $O(nM)$ algorithm that provides a unified framework for various optimality criteria and handles "restless" walks with waiting constraints. The proposed method achieves speedups of up to 250x over state-of-the-art techniques, enabling exact centrality analysis on massive real-world networks.

Introduction

In network science, betweenness centrality identifies "gatekeepers" of a graph—nodes that lie on the most optimal paths between others. While efficient algorithms for static graphs have existed since 2001, real-world networks like email exchanges or public transit are inherently temporal. Computing betweenness in these systems is difficult due to the time-dependent nature of edges. Previous approaches were often limited to specific path types, relied on approximations for large datasets, or assumed travelers could wait indefinitely at any node. This paper addresses these challenges by introducing an efficient, exact algorithm for temporal betweenness that incorporates realistic waiting constraints, known as "restless" walks.

Methodology: Edge-Centric and Restless

The authors extend Brandes’ classic two-phase algorithm (forward path counting and backward dependency accumulation) to the temporal domain through three key innovations:

  1. Edge-Centric Processing: Rather than iterating over vertices, the algorithm processes temporal edges. By sorting edges by arrival and departure times, the algorithm ensures each edge is handled a constant number of times, significantly reducing complexity.
  2. The "Restless" Framework: To model real-world constraints where agents cannot wait indefinitely (e.g., a commuter waiting for a bus), the authors utilize "interval quintuples." This data structure tracks valid time windows for extending optimal walks without violating waiting limits (denoted as $\beta$).
  3. Unified Cost Algebraic Structure: The algorithm is designed to be agnostic to the specific optimality criterion. By swapping the underlying cost algebraic structure, it can compute betweenness for shortest, fastest, foremost, and other path types within the same framework.
Example of a temporal graph and the associated edge-centric data structures used for efficient processing.

Key Insights: The Importance of Timing

The research highlights several critical aspects of temporal network analysis:

  • Walks vs. Paths: While finding simple paths (no repeated nodes) in a restless setting is NP-complete, the authors demonstrate that focusing on walks (allowing node repetitions) yields a polynomial-time complexity of $O(nM)$ without sacrificing the physical relevance of the centrality measure.
  • Waiting Constraints Matter: A node's importance can shift dramatically based on the allowed waiting time. A "gatekeeper" under infinite patience might become irrelevant if connections must be made quickly.
  • Static Proxies are Insufficient: There is a low correlation between temporal betweenness and the betweenness of a flattened "static underlying graph," proving that the timing of interactions is a fundamental component of node importance.

Results and Performance

The algorithm was evaluated on diverse datasets, including social networks (Facebook, WikiElections), large-scale communication graphs (MathOverflow, AskUbuntu), and public transit networks for major cities.

  • Significant Speedups: The new approach is 2x to 250x faster than previous state-of-the-art methods (e.g., Buß et al., KDD 2020).
  • Exact Computation at Scale: For graphs with over a million edges, the algorithm computed exact betweenness values in hours, a task that previously required imprecise sampling-based approximations.
  • Complexity Reduction: The complexity for shortest and shortest-foremost paths was reduced from $O(n^3T^2)$ to $O(nM)$, where $M$ is the number of temporal edges.
Comparison of betweenness values for different optimality criteria, illustrating how node importance varies across the network.

Conclusion

This work provides a robust and efficient solution for computing exact betweenness centrality in large temporal networks. By addressing the "restless" nature of real-world systems and providing a unified algebraic framework, it opens new avenues for analyzing the dynamics of complex networks. Future work may involve incorporating "transfer penalties" for transit networks and establishing formal conditional lower bounds for the $O(nM)$ complexity.

Reference: Brunelli, F., Crescenzi, P., & Viennot, L. (2025). Making Temporal Betweenness Computation Faster and Restless. arXiv:2501.12708v1 [cs.DS].

Summary updated

BibTeX
@inproceedings{brunelli2024making,
  author = {Filippo Brunelli and Pierluigi Crescenzi and Laurent Viennot},
  title = {{Making Temporal Betweenness Computation Faster and Restless}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2024},
  doi = {10.1145/3637528.3671825},
}
Figure