Temporal Simple Path Graph (tspG)
- Temporal Simple Path Graph (tspG) is the subgraph containing all simple temporal s-t paths within a specified time interval without revisiting vertices.
- The method uses a two-stage polynomial-time upper-bound construction (QuickUBG and TightUBG) followed by bidirectional DFS-based escape edge verification to ensure exact extraction.
- Applications in epidemiology, finance, and travel planning demonstrate the efficiency of VUG, significantly reducing computational costs compared to full path enumeration.
Searching arXiv for the specified paper to ground the article and citation metadata. Using the arXiv search tool to verify (Tang et al., 14 Jul 2025) and related metadata. The temporal simple path graph, denoted , is the subgraph consisting of all temporal simple paths from a source vertex to a target vertex within a given time interval. In "Efficient Temporal Simple Path Graph Generation" (Tang et al., 14 Jul 2025), the problem is proposed and investigated for the first time in the setting of directed temporal graphs. The central objective is to generate exactly, while avoiding the computational expense of directly enumerating all temporal simple paths. The paper addresses this by combining a polynomial-time upper-bound construction with a subsequent verification stage that removes residual false positives without exhaustively enumerating all temporal simple - paths.
1. Formal model and definition of
A directed temporal graph is a triple
where is a finite set of vertices, is a set of integer timestamps, and is a set of directed temporal edges. Each edge represents an interaction from 0 to 1 at time 2. For each vertex 3, the paper writes
4
and assumes that every neighbor-list 5 and 6 is sorted by the timestamp component.
Fix a time interval 7. A temporal path from 8 to 9 in 0 is a sequence of edges
1
such that
2
Its length is 3, and 4 denotes the set of all such paths. A temporal simple path is a temporal path that never revisits a vertex, that is, 5 for all 6. The subset of simple temporal paths is denoted
7
Let 8. The vertex and edge sets induced by all simple temporal 9-0 paths are
1
The temporal simple path graph is then
2
This formulation makes the object of interest a subgraph rather than a single path. A plausible implication is that the task is not only to determine whether 3 reaches 4, but to isolate the exact edge-and-vertex support of all simple temporal 5-6 connectivity within the interval.
2. Problem statement and computational objective
The input is a directed temporal graph 7, two query vertices 8, and a time interval 9. The output is 0 (Tang et al., 14 Jul 2025).
The paper also gives two alternative formulations. In decision form, the question is: does an edge 1 lie on some simple temporal path from 2 to 3 in 4? In optimization form, the goal is to compute the minimal subgraph 5 such that every simple temporal 6-7 path in 8 is contained in 9.
These formulations distinguish existence testing from exact subgraph generation. The distinction is consequential because direct enumeration of all temporal simple paths and then taking their union is computationally expensive, whereas the target output is only the minimal subgraph covering all such paths, not the explicit list of paths themselves.
3. Verification in Upper-bound Graph
The proposed method is Verification in Upper-bound Graph (VUG). Rather than enumerating all simple paths, VUG first builds a polynomial-time upper-bound graph 0 that over-approximates 1, and then verifies each edge in 2 to prune those that cannot appear on any simple temporal 3-4 path (Tang et al., 14 Jul 2025).
The first stage is Quick Upper-bound Graph, or QuickUBG, which performs temporal-only pruning. For each vertex 5, the earliest arrival time is
6
and for each 7, the latest departure time is
8
The temporal-existence lemma states that an edge 9 lies on some, not necessarily simple, path 0 in 1 if and only if
2
QuickUBG computes 3 and 4 by two BFS-like scans in 5, and then forms
6
The construction time is 7, and the space is 8.
The second stage is Tight Upper-bound Graph, or TightUBG, which adds simple-path pruning. The key idea is that an edge may survive temporal pruning but still only occur in paths that revisit some vertex twice. To detect this, the paper defines time-stream common vertices. For any 9 and any 0,
1
which is the set of vertices other than 2 that lie on every simple temporal path from 3 to 4 arriving by time 5. Similarly,
6
The paper states that one only needs to store 7 for each incoming timestamp to 8 in 9 and 0 for each outgoing timestamp from 1, and that each 2-set can be computed by a single pass over 3 in time 4.
For an edge 5, let
6
The necessary condition for surviving simple-path pruning is
7
If the intersection is non-empty, then every way to reach 8 meets every way out of 9 at a common vertex, so 0 can never be on a simple path 1, and it is deleted.
TightUBG processes each edge in nondecreasing time order, computes 2 by two pointer walks, fetches the two sets in 3, intersects them in 4, and keeps the edge if and only if the intersection is empty, or 5, or 6. The result is 7. The time is 8, and the space is 9.
| Component | Function | Complexity |
|---|---|---|
| QuickUBG | Temporal-only pruning via 00 | 01 time; 02 space |
| TightUBG | Adds simple-path pruning using 03 and 04 | 05 time; 06 space |
| 07 | Tight upper-bound graph | Over-approximation of 08 |
A common misunderstanding would be to treat 09 as the exact answer. The paper does not do so: 10 is explicitly an upper bound, and exactness is obtained only after the subsequent verification phase.
4. Escape Edges Verification and exactness
After constructing 11, the remaining task is to remove edges that satisfy temporal and simple-path conditions individually but still cannot lie on any simple temporal 12-13 path. The paper addresses this by Escape Edges Verification (EEV), which tests each remaining edge via a bidirectional DFS, with several accelerations (Tang et al., 14 Jul 2025).
The first acceleration is batch edge confirmation. If
14
is a simple temporal 15-16 path in 17, then for any 18, every other edge 19 with 20 also lies on some simple 21 path. Once one such path is identified, all edges that share the same endpoints and fall into the corresponding time window can therefore be marked as verified in one batch.
The second acceleration is the two-hop shortcuts lemma. Any edge adjacent to 22 or 23, or within one hop thereof, is automatically verified, because only one step is needed to get away from 24 or one more step is needed to reach 25.
The third acceleration is a bidirectional DFS with search-order heuristics. The search proceeds simultaneously forward from 26 toward 27 and backward toward 28, toggling direction as soon as one side completes. If 29, the search starts forward; otherwise it starts backward. In forward search, later outgoing edges are explored first, and in backward search, earlier incoming edges are explored first.
The EEV procedure is summarized as follows. First, mark as verified all edges within two hops of 30 or 31. Second, for every unverified edge 32 in time order, launch the bidirectional DFS to find any simple path 33 that uses 34; if one is found, extract the sequence of edges on that path and batch-confirm all endpoint-equivalent edges in the appropriate time windows. Third, the union of all verified edges is exactly 35.
The correctness statement is explicit: every edge in 36 must survive both the upper-bound checks and eventually be verified by being witnessed on some simple path; conversely, anything verified is on a valid simple path by construction. The worst-case time is also explicit: in the pathological case of very large degree 37 and long interval 38, a single bidirectional DFS can cost up to 39, while the space is 40. The paper further states that in practice the two-hop shortcuts, batch-confirmation, and tight upper-bound graph make EEV extremely fast.
5. Empirical behavior on real-world temporal graphs
The experimental evaluation uses ten real-world temporal graphs from SNAP/KONECT (Tang et al., 14 Jul 2025). The reported datasets are: D1 email-Eu (41 V, 42 M E, span 43); D2-D4 StackExchange subsets (44 K-45 K V, 46-47 M E, span 48-49); D5-D7 Wikipedia edits/talk (50-51 M V, 52-53 M E, span up to 54); D8 Flickr (55 M V, 56 M E, span 57); D9 SO full (58 M V, 59 M E, span 60); and D10 Wiki full (61 M V, 62 M E, span 63).
The baselines are EPdtTSG, defined as project to 64 plus enumerate; EPesTSG, defined as "esTSG" temporal-only prune plus enumerate; and EPtgTSG, defined as "tgTSG" Dijkstra-style prune plus enumerate. The metrics are total time for 65 random 66 queries where a path exists, and peak memory.
The reported results are specific. VUG is 67-68 faster than any enumeration-based baseline. On D9 and D10, the baselines time out at 69 h, while VUG answers in a few minutes. VUG uses 70 of the intermediate memory that enumeration requires, and its footprint is stable across queries. In scalability experiments with respect to 71, the baselines grow exponentially, while VUG grows roughly linearly.
The paper also quantifies the quality of the upper bounds. QuickUBG already reduces 72 by 73-74. TightUBG further reduces the graph to within 75-76 of the final 77, so only a few edges remain to verify. EEV itself is almost negligible cost, amounting to a few percent of total time, due to the two-hop and batch optimizations.
These results establish a consistent separation between upper-bound construction and final verification. A plausible implication is that the empirical efficiency of the overall method depends critically on producing a tight 78 before invoking DFS-based exact verification.
6. Applications, extensions, and methodological significance
The paper lists several application domains. In epidemiology, the method can reconstruct all possible transmission chains in a time window and identify super-spreaders. In finance, it can trace all simple money-laundering loops between two accounts within a time bracket. In travel planning, it can show all viable transfer sequences from station 79 to 80 in the next hour. In social media, it can capture all distinct retweet cascades between influencer and target user (Tang et al., 14 Jul 2025).
The paper also states several extensions. One can add label-constraints, such as types of edges; resource-constraints, such as maximum hops; or adapt the framework to streaming updates by incremental maintenance of 81, 82, and the time-stream sets.
Methodologically, the work is positioned around the claim that direct enumeration of all temporal simple paths and constructing the 83 is computationally expensive, whereas the VUG framework—QuickUBG, TightUBG, and EEV—generates the exact temporal simple path graph through polynomial preprocessing and efficient verification, thereby avoiding the combinatorial explosion of path enumeration. This suggests that 84 generation can be treated as an exact subgraph extraction problem rather than as a path-enumeration problem, provided that temporal and simple-path constraints are incorporated early and verification is deferred to a much smaller candidate graph.