arXiv:2609.02851cs.DSSep 2026

Manuscript Offprint

arXiv:2609.02851

Almost Linear 3-Spanners of Temporal Cliques

Julia Baligacs, Davide Bilò, Václav Blažej, Maël Dumas, Anna Zych-Pawlewicz

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Júlia Baligács

University of Oxford

jbaligacs@gmail.com

Davide Bilò

University of L'Aquila

davide.bilo@univaq.it

Václav Blažej

University of Warsaw

vaclavblazej@gmail.com

Maël Dumas

University of Warsaw

mdumas@mimuw.edu.pl

Anna Zych-Pawlewicz

University of Warsaw

anka@mimuw.edu.pl

Abstract

Temporal graphs model dynamic networks by assigning positive integer time labels to the edges, while information propagates along temporal paths, whose edge labels are traversed in nondecreasing order. A temporal α\alpha-spanner of a temporal graph with nn vertices is a temporal subgraph that approximates the minimum-hop temporal distance between every pair of vertices within a factor of α\alpha. While general temporal graphs may not admit sparse temporal α\alpha-spanners for any value of α\alpha, temporal cliques are known to admit temporal (2k−1)(2k-1)-spanners of size O(kn1+1/k)\mathcal{O}(kn^{1+1/k}) for every positive integer kk.

We present a simple recursive algorithm that computes, for every temporal clique on nn vertices, a temporal 3-spanner of size n1+2/ln⁡n=n1+o(1)n^{1+2/\sqrt{\ln n}} = n^{1+o(1)}, thereby improving the previous best upper bound of O~(n3/2)\widetilde{\mathcal{O}}(n^{3/2}). We also show that a modified version of our algorithm computes temporal 3-spanners of size O(nL)\mathcal{O}(nL) when the lifetime is bounded by LL, i.e., all time labels are in {1,…,L}\{1,\ldots,L\}, thus improving the previous bound of O(2Lnlog⁡n)\mathcal{O}(2^L n \log n). Both results are particularly striking in light of the known lower bound of Ω(n2)\Omega(n^2) on the size of temporal 2-spanners, which already holds for temporal cliques of lifetime L⩾3L \geqslant 3.

Both algorithms rely on a new simple recursive decomposition that certifies temporal connectivity for a large collection of source-target pairs using only O(n)\mathcal{O}(n) carefully selected edges and recursively processes only the remaining pairs. Besides yielding substantially improved upper bounds, this approach is significantly simpler than previous constructions.

This research has been initiated/conducted at the AlgUW workshop (Będlewo 09.2025), supported by the Excellence Initiative – Research University (IDUB) funds of the University of Warsaw.

Funding information:

Davide Bilò acknowledges the support of the project SOS-TG: Spanners and Oracles for Static and Temporal Graphs, funded by Università degli Studi dell'Aquila under the Call for Proposals for Fundamental Research and Early-Career Research Grants – Year 2026.

Júlia Baligács (during employment in Warsaw), Václav Blažej, Maël Dumas, and Anna Zych-Pawlewicz: ERC project BOBR, funded from the European Research Council (ERC) under the European Union's Horizon 2020 research and innovation programme with grant agreement No. 948057.

Júlia Baligács (during employment in Oxford): ERC grant CCOO (grant no. 101165139). Views and opinions expressed are however those of the authors only and do not necessarily reflect those of the European Union or the European Research Council. Neither the European Union nor the granting authority can be held responsible for them.

erc

European Research Council

Coordinated by the European Commission

EU

1 Introduction

Temporal graphs provide a natural model for networks whose topology changes over time. In this framework, edges are assigned one or more integer time labels, and information propagates along temporal paths, i.e., paths whose edge labels are traversed in nondecreasing order. More formally, a temporal graph G=(V,E,λ)G = (V, E, \lambda) consists of a set of vertices VV, a set of edges E⊆(V2)E \subseteq \binom{V}{2}, and a time labeling function λ:E→P(N)\lambda: E \to \mathcal{P}(\mathbb{N}). For two vertices u,v∈Vu, v \in V, a temporal u−vu-v-path is a u−vu-v-path in the underlying graph (V,E)(V, E) such that the sequence of traversed edges e1,…,eke_1, \ldots, e_k admits labels λi∈λ(ei)\lambda_i \in \lambda(e_i) (i∈{1,…,k}i \in \{1, \ldots, k\}) with λ1⩽…⩽λk\lambda_1 \leqslant \ldots \leqslant \lambda_k. The size of a temporal graph is the total number of labels, that is, ∑e∈E∣λ(e)∣\sum_{e \in E} |\lambda(e)|. Temporal graphs arise naturally in many dynamic systems, including communication networks, transportation systems, social interactions, and biological networks [CFQS12, Mic16].

A fundamental question in temporal graph algorithms is how to sparsify such networks while preserving temporal connectivity. Given a temporal graph that is temporally connected, i.e., it contains a temporal path between every ordered pair of vertices, a temporal spanner is a spanning subgraph that preserves temporal connectivity. Formally, to specify a temporal spanner of G=(V,E,λ)G = (V, E, \lambda), it suffices to specify a set of edges E′⊆EE' \subseteq E and a labeling function λ′:E′→P(N)\lambda': E' \to \mathcal{P}(\mathbb{N}) with λ′(e)⊆λ(e)\lambda'(e) \subseteq \lambda(e) for every e∈E′e \in E'. The size of the corresponding spanner is then the size of G′=(V,E′,λ′)G' = (V, E', \lambda'). Unlike static graphs, where sparse connectivity certificates always exist (namely a spanning tree), temporal graphs may require dense spanners. Indeed, Kempe, Kleinberg, and Kumar [KKK02] constructed temporal graphs on nn vertices for which every temporal spanner has size Ω(nlog⁡n)\Omega(n \log n). Axiotis and Fotakis [AF16] later strengthened this lower bound to Ω(n2)\Omega(n^2). This motivates the study of graph classes where temporal connectivity can still be preserved by sparse certificates.

Temporal cliques are the canonical positive example in this setting, as they admit remarkably sparse temporal spanners despite containing Θ(n2)\Theta(n^2) edges, where nn is the number of vertices. Casteigts, Peters, and Schoeters [CPS21] were the first to design an algorithm computing temporal spanners of size O(nlog⁡n)\mathcal{O}(n \log n) for temporal cliques. Later, Carnevale, Casteigts, and Corsini [CCC25] gave a significantly simpler recursive construction achieving the same asymptotic bound. More recently, Baligács [Bal26] showed that every temporal clique admits a temporal spanner of size at most 7n7n. Finally, Angrick et al. [ABF+24^{24}] proved that temporal cliques and temporal bicliques admit temporal spanners of asymptotically the same size. Consequently, sparse temporal spanners are now essentially understood for temporal cliques and bicliques. Beyond worst-case graph classes, Casteigts, Raskin, Renken, and Zamaraev [CRRZ24] studied random temporal graphs generated from Erdős–Rényi random graphs and showed that they admit nearly optimal temporal spanners asymptotically almost surely.

A natural next question is whether similarly sparse certificates can preserve not only temporal connectivity, but also the minimum-hop temporal distances. In many applications, the number of intermediate relays is a critical parameter: every additional hop increases communication overhead and may introduce additional sources of failure. This motivates the study of temporal α\alpha-spanners, which approximate the minimum-hop temporal distance between every pair of vertices within a multiplicative factor of α\alpha. For temporal cliques, where every pair of vertices is directly connected by a temporal edge, a temporal α\alpha-spanner guarantees a temporal path with at most α\alpha edges between every pair of vertices.

Bilò, D'Angelo, Gualà, Leucci, and Rossi [BDG+22^{22}] initiated the study of temporal α\alpha-spanners, and showed that temporal cliques admit temporal (2k−1)(2k-1)-spanners of size O(kn1+1/klog⁡1−1/kn)\mathcal{O}(kn^{1+1/k} \log^{1-1/k} n) for every integer k⩾1k \geqslant 1. In particular, they obtained temporal ⌊log⁡n⌋\lfloor \log n \rfloor-spanners of size O(nlog⁡2n)\mathcal{O}(n \log^2 n). They also studied temporal cliques with lifetime LL, i.e., instances in which all time labels belong to {1,…,L}\{1, \ldots, L\}, and obtained temporal 3-spanners of size O(2Lnlog⁡n)\mathcal{O}(2^L n \log n). They further proved that temporal 2-spanners have size O(nlog⁡n)\mathcal{O}(n \log n) for L=2L=2, but require Ω(n2)\Omega(n^2) edges for L⩾3L \geqslant 3. Therefore, temporal 3-spanners are the first non-trivial constant-hop regime for L⩾3L \geqslant 3 admitting sparse spanners.

Despite these results, no superlinear lower bound is known on the size of temporal α\alpha-spanners for temporal cliques even for α=3\alpha=3. Understanding the tradeoff between sparsity and hop bounds is therefore a fundamental open problem, which is the focus of this work.

Our contribution. We show that every temporal clique admits a temporal 3-spanner of almost linear size.

Theorem 1. Every temporal clique on nn vertices admits a temporal 3-spanner of size at most n1+2/ln⁡n=n1+o(1)n^{1+2/\sqrt{\ln n}}=n^{1+o(1)}. Moreover, such a spanner can be computed in time O(n2+o(1))\mathcal{O}(n^{2+o(1)}).

This is the first construction of an almost-linear-size temporal spanner with a constant hop bound, improving the previous best upper bound of O~(nn)\tilde{\mathcal{O}}(n\sqrt{n}) for 3-spanners. We also consider temporal cliques with bounded lifetime LL and show that they admit sparse temporal 3-spanners.

Theorem 2. Every temporal clique on nn vertices of lifetime LL admits a temporal 3-spanner of size O(nL)\mathcal{O}(nL). Moreover, such a spanner can be computed in time O(n3L)\mathcal{O}(n^3L).

This improves the previous bound of O(2Lnlog⁡n)\mathcal{O}(2^L n \log n) by removing the logarithmic factor and replacing the exponential dependence on the lifetime with a linear one. It is worth noticing that all our results extend to temporal bicliques as well.

While previous constructions relied on substantially more involved recursive decompositions, our algorithms are based on a simple recursive procedure, called ZORRO, that exploits the equivalence between temporal cliques and temporal bicliques established in [ABF +24^{+24}]. Our procedure repeatedly identifies a carefully selected set of O(n)\mathcal{O}(n) edges that simultaneously certifies 3-hop temporal connectivity for a large collection of source-target pairs. The key idea is that these pairs do not need to be handled individually: after removing all pairs already certified by our procedure, the algorithm recursively processes only the remaining pairs. This leads to a simple recursive decomposition that captures the structure of temporal cliques and achieves near-linear sparsity.

Our results reveal a sharp transition in the hop-constrained setting: while temporal 2-spanners may require quadratic size, allowing one additional hop already enables near-linear sparsification. An intriguing open question is whether every temporal clique admits a linear-size temporal 3-spanner.