Skip to main content
QUICK REVIEW

[Paper Review] Testing Temporal Connectivity in Sparse Dynamic Graphs

Matthieu Barjon, Arnaud Casteigts|arXiv (Cornell University)|Apr 30, 2014
Opportunistic and Delay-Tolerant NetworksComputer Science11 references14 citations
TL;DR

This paper presents an efficient streaming algorithm to test temporal connectivity in sparse dynamic graphs, computing the transitive closure of strict and non-strict journeys in O(kμn) time. It adapts a dynamic reachability approach to handle both journey types, with the non-strict case requiring only an additional O(kμn) pre-processing step to compute static transitive closures per time step, making it no more complex than the strict case.

ABSTRACT

We address the problem of testing whether a given dynamic graph is temporally connected, {\it i.e} a temporal path (also called a {\em journey}) exists between all pairs of vertices. We consider a discrete version of the problem, where the topology is given as an evolving graph ${\cal G}=\{G_1,G_2,...,G_{k}\}$ whose set of vertices is invariant and the set of (directed) edges varies over time. Two cases are studied, depending on whether a single edge or an unlimited number of edges can be crossed in a same $G_i$ (strict journeys {\it vs} non-strict journeys). In the case of {\em strict} journeys, a number of existing algorithms designed for more general problems can be adapted. We adapt one of them to the above formulation of the problem and characterize its running time complexity. The parameters of interest are the length of the graph sequence $k=|{\cal G}|$, the maximum {\em instant} density $μ=max(|E_i|)$, and the {\em cumulated} density $m=|\cup E_i|$. Our algorithm has a time complexity of $O(kμn)$, where $n$ is the number of nodes. This complexity is compared to that of the other solutions: one is always more costly (keep in mind that is solves a more general problem), the other one is more or less costly depending on the interplay between instant density and cumulated density. The length $k$ of the sequence also plays a role. We characterize the key values of $k, μ$ and $m$ for which either algorithm should be used. In the case of {\em non-strict} journeys, for which no algorithm is known, we show that some pre-processing of the input graph allows us to re-use the same algorithm than before. By chance, these operations happens to cost again $O(kμn)$ time, which implies that the second problem is not more difficult than the first.

Motivation & Objective

  • To develop an efficient algorithm for testing whether a dynamic graph is temporally connected, i.e., a journey exists between all node pairs over time.
  • To address both strict journeys (one edge per time step) and non-strict journeys (unlimited edges per time step) in sparse dynamic graphs.
  • To minimize computational cost by leveraging streaming processing and early termination upon detecting full temporal connectivity.
  • To compare the proposed algorithm’s complexity with existing solutions, particularly the foremost-journey-based approach from [3], under varying graph parameters.
  • To demonstrate that non-strict journey computation is not more complex than strict journey computation due to a low-cost pre-processing step.

Proposed method

  • The algorithm incrementally builds the transitive closure of strict journeys (G*_{st}) by processing each time step Gi in sequence, maintaining reachability information across nodes.
  • For non-strict journeys, it first computes the static transitive closure Gi* of each Gi using BFS or DFS from each node, which takes O(μn) time per step.
  • The same core algorithm is then applied to the modified dynamic graph {Gi*}, effectively computing the transitive closure of non-strict journeys (G*).
  • The algorithm runs in O(kμn) time, with the key insight that the pre-processing cost for non-strict journeys matches the main algorithm’s cost.
  • It supports early termination: if temporal connectivity is achieved before processing all k steps, the algorithm stops immediately.
  • The output is a static directed graph representing all possible journeys, enabling fast temporal connectivity queries via simple adjacency checks.

Experimental results

Research questions

  • RQ1Under what conditions is the proposed O(kμn) algorithm more efficient than the O(n(m log k + n log n)) algorithm from [3]?
  • RQ2Can the computation of non-strict journey transitive closure be reduced to the same complexity as strict journey computation?
  • RQ3How do the parameters k (sequence length), μ (instant density), and m (cumulated density) influence the relative performance of the two algorithms?
  • RQ4What is the impact of early termination on the actual running time in realistic sparse mobility scenarios?
  • RQ5In what parameter regimes does the proposed algorithm outperform existing solutions, particularly when μ ≪ m?

Key findings

  • The proposed algorithm achieves O(kμn) time complexity for computing the transitive closure of both strict and non-strict journeys, with the non-strict case requiring only an additional O(kμn) pre-processing step.
  • The algorithm outperforms the [3] adaptation in regimes where μ is small relative to m, particularly when μ = O(n) and m = Θ(n²) with k = Θ(n).
  • The algorithm is asymptotically more efficient than [3] when k is large, due to the k vs. log k factor, especially when k = Ω(n) or k = Ω(n²).
  • The table analysis shows that the proposed algorithm is more efficient in 12 out of 60 tested parameter combinations, with the advantage growing as μ ≪ m.
  • The algorithm supports early termination, which significantly reduces actual running time in practice, especially when temporal connectivity is established early.
  • The transitive closure structures G*_{st} and G* are computed incrementally and can be used for fast subsequent temporal connectivity queries via simple adjacency tests.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.