Restless reachability problems in temporal graphs

Suhas Thejaswi, Juho Lauri, Aristides Gionis

TL;DR

This paper introduces and solves "restless reachability" problems in temporal graphs, which model dynamic networks where connections change over time and nodes have waiting-time restrictions. The authors develop a novel algebraic framework using constrained multilinear sieving that efficiently solves these NP-hard problems, even for massive graphs with billions of edges, and demonstrates its practical scalability.

What Problem Does This Paper Address?

Real-world networks, like social interactions or disease spread, are dynamic and evolve over time. Traditional graph analysis often treats these networks as static snapshots. However, many phenomena depend on the temporal order of events and the time spent at each node. This paper tackles "restless reachability" problems in temporal graphs, which consider paths where edges must be traversed in increasing timestamp order, and crucially, where there's a maximum "resting time" allowed at each node between consecutive edge traversals. This is vital for understanding processes like disease propagation (where individuals recover or become inactive) or information diffusion with time-sensitive delays. The authors aim to efficiently determine if a node is reachable from a source under these time-respecting and resting-time constraints, even when nodes have associated "colors" (e.g., disease states, types of locations).

Methods

The core of the paper's contribution lies in an algebraic algorithmic framework based on constrained multilinear sieving. This technique encodes temporal walks as multivariate polynomials. A key insight is that a "restless path" (a walk with no repeated vertices) corresponds to a multilinear monomial in this polynomial. The problem then becomes detecting such a monomial.

The authors develop a fine-grained decision oracle that can efficiently evaluate these polynomials. This oracle, unlike previous methods, doesn't just answer YES/NO but provides more detailed information about reachability at specific times. This fine-grained approach is crucial for extracting actual paths and optimal solutions. They also introduce a deterministic algorithm based on constructing a "static expansion" of the temporal graph and solving the "Rainbow Path" problem on it, though this is noted as less practical for large graphs.

Datasets

The paper utilizes both synthetic graphs (d-regular and power-law graphs) and real-world datasets for evaluation. The real-world datasets include:

  • Socio-patterns (co-presence data)
  • Koblenz network collections
  • Copenhagen study network
  • Public-transport networks

The authors describe preprocessing steps for these datasets, including renaming identifiers, handling Unix timestamps, and converting undirected contact networks to directed edges.

Key Insights and Ideas

  • Restless paths are multilinear monomials: The core algebraic insight is that the existence of a restless path in a temporal graph directly maps to the existence of a multilinear monomial in a specially constructed polynomial encoding of temporal walks. This bridges graph theory with polynomial identity testing.
  • Fine-grained oracle for efficiency: Moving beyond simple YES/NO decision oracles to a "fine-grained" one that reports reachability at specific times and nodes significantly improves efficiency, especially for extracting solutions.
  • Scalability to massive graphs: Despite the NP-hard nature of the problems, the algebraic approach, combined with careful implementation leveraging AVX2 and hardware prefetching, allows the algorithm to scale to graphs with up to one billion temporal edges.
  • Color constraints add complexity but are manageable: The framework is extended to handle vertex-colored temporal graphs and multiset color queries, demonstrating its versatility.

Key Results

  • The proposed algorithms solve various restless reachability problems (k-RESTLESSPATH, k-RESTLESSREACH, k-RESTLESSMOTIF, k-RESTLESSMOTIFREACH) in O(2^k * k * m * Δ) time and O(n * Δ) space, where 'n' is vertices, 'm' is edges, 'k' is path length, and 'Δ' is max resting time.
  • These algorithms are proven to be optimal under plausible complexity-theoretic assumptions (related to the Set Cover Conjecture).
  • An open-source implementation demonstrates scalability to graphs with up to one billion temporal edges on a commodity desktop.
  • Experiments on real-world datasets show that the algorithm can solve restless reachability problems in graphs with millions of edges and thousands of timestamps in under an hour.
  • The fine-grained extraction approach is up to four times faster than decision oracle extraction for large graphs.

Limitations and Future Work

  • Exponential dependency on path length (k): The algorithms' running time is exponential in 'k', limiting scalability for very long paths. The authors suggest exploring vector-parallel architectures (like GPGPUs) and adapting narrow-sieve constructions to potentially break the O*(2^k) barrier.
  • Heuristic separators for disease spread: In the case study on disease spread, heuristic approaches for selecting "separator" vertices (immune or vaccinated individuals) were not universally effective. Future work could focus on finding effective approximation or heuristic schemes for temporal separators.
  • Extending to other temporal graph problems: The authors believe their framework can be extended to solve other temporal graph problems, such as finding temporal arborescences or connected temporal subgraphs.

Summary updated

BibTeX
@article{thejaswi2025restless,
  author = {Suhas Thejaswi and Juho Lauri and Aristides Gionis},
  title = {{Restless reachability problems in temporal graphs}},
  journal = {Knowledge and Information Systems},
  year = {2025},
  doi = {10.1007/s10115-025-02405-6},
}
Figure