A Dynamic Data Structure for Temporal Reachability with Unsorted Contact Insertions

Luiz F. Afra Brito, Marcelo Albertini, Arnaud Casteigts, Bruno A. N. Travençolo
2/8/2021
cs.DScs.CC

Official code: albertiniufu/dynamictemporalgraph (5 stars, Java, GPL-3.0, last commit 2023-03-28).

Abstract

Temporal graphs represent interactions between entities over the time. These interactions may be direct (a contact between two nodes at some time instant), or indirect, through sequences of contacts called temporal paths (journeys).

Show full abstract

Deciding whether an entity can reach another through a journey is useful for various applications in communication networks and epidemiology, among other fields. In this paper, we present a data structure which maintains temporal reachability information under the addition of new contacts (i.e., triplets $(u,v,t)$ indicating that node $u$ and node $v$ interacted at time $t$). In contrast to previous works, the contacts can be inserted in arbitrary order -- in particular, non-chronologically -- which corresponds to systems where the information is collected a posteriori (e.g. when trying to reconstruct contamination chains among people). The main component of our data structure is a generalization of transitive closure called timed transitive closure (TTC), which allows us to maintain reachability information relative to all nested time intervals, without storing all these intervals, nor the journeys themselves. TTCs are of independent interest and we study a number of their general properties. Let $n$ be the number of nodes and $τ$ be the number of timestamps in the lifetime of the temporal graph. Our data structure answers reachability queries regarding the existence of a journey from a given node to another within given time interval in time $O(\logτ)$; it has an amortized insertion time of $O(n^2\logτ)$; and it can reconstruct a valid journey that witnesses reachability in time $O(k\logτ)$, where $k<n$ is the maximum number of edges of this journey. Finally, the space complexity of our reachability data structure is $O(n^2τ)$, which remains within the worst-case size of the temporal graph itself.

View on arXivView PDF

Code Implementations(1)

GPL-3.0

A dynamic data structure for reachability queries for temporal graphs

50Java, MakefileFeb 9, 20213 years agoGPL-3.0
reachability-queriestemporal-graphs

Similar Papers

Cite this paper

@article{brito2021dynamic,
  title  = {A Dynamic Data Structure for Temporal Reachability with Unsorted Contact Insertions},
  author = {Luiz F. Afra Brito and Marcelo Albertini and Arnaud Casteigts and Bruno A. N. Travençolo},
  year   = {2021},
  eprint = {2102.04187},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2102.04187}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2102.04187.svg)](https://codeofpaper.com/paper/2102.04187)

Discussion