Skip to content

Worst-Case Optimal BGPs on Temporal Graphs

Jul 2026 · Proceedings of the VLDB Endowment · Vol abs/2607.20356 · 0 citations · 60 references
Computer Science

TL;DR

An index structure that, for a temporal graph with N edges, requires O(N) space and can evaluate extended BGPs in wco time and yields wco guarantees for related query types, including snapshot evaluation, version queries, and other temporal variants.

Abstract

We study how to evaluate basic graph patterns (BGPs) in a worst-case-optimal (wco) manner over temporal labeled graphs, where edges have an interval of temporal validity. We adopt a flexible query language in which users specify m quads of the form (subject, property, object, time), using constants or variables. The time component denotes the instant at which a particular edge is valid, and users may also include order relations between temporal constants or variables. The answer is the set of all valid variable assignments, including time. We describe an index structure that, for a temporal graph with N edges, requires O(N) space and can evaluate extended BGPs in wco time O(Q*m log N ), where Q * represents the maximum number of solutions for query Q over any temporal graph with the same number of instants of edge validity. We use our index to adapt Leapfrog Triejoin to the temporal graph setting under any variable evaluation ordering. Our index further yields wco guarantees for related query types, including snapshot evaluation, version queries, and other temporal variants. Experiments on real-world datasets show that our approach answers realistic queries in milliseconds with low space overhead.

View source

Similar papers

Speeding up Qdags with Generalized Hypertree Decompositions

This paper combines Qdags with a Generalized Hypertree Decomposition of the query, into subqueries with fewer variables, and implements algorithms that find the optimal GHD according to the AGM bounds of the subqueries and the specificities of the Qdag cost model.

Diego Arroyuelo, Gabriel Carmona, Gonzalo Navarro et al. · 0 citations
Open access Sep 2026

Effective Structurally Similar Community Search in Large Temporal Graphs

A temporal graph is an undirected graph where each edge is associated with a timestamp representing the interaction time. As a fundamental problem in graph analysis, community search (CS) in temporal graphs has received tremendous research attention. Existing CS works on temporal graphs typically focus on identifying...

Yue Zhang, Ying-Li Zhou, Fang-Yuan Zhang et al. · 0 citations
Preprint Oct 2026

Hiding a Vertex from the Temporal Explorer: A Lower Bound for Degree-Bounded Temporal Graphs

A temporal graph is a sequence of graphs on a common set of $n$ vertices, its snapshots, one for each time step. An agent, knowing the entire sequence in advance, may at each time step wait or move along an edge of the current snapshot, and the temporal graph is explored once the agent has visited every vertex. We cons...

Daniele Carnevale · 0 citations
Oct 2025

Effective Durable Community Search in Large Temporal Graph

A novel community model, called temporal durable community (TDC), which is the temporal k -core with the longest duration in the temporal graph, is introduced, and two index structures that can quickly determine the duration of a given temporal k -core are developed, followed by query algorithms.

Ying-Li Zhou, Yi-Ge Jiang, Yi-Xiang Fang et al. · 0 citations
Preprint Aug 2026

Instance-Optimality of Bidirectional Dijkstra on Simple Graphs

It is shown that bidirectional Dijkstra is still instance-optimal on simple undirected weighted graphs under the order-oblivious model, where incident edges are given in a random order, and under the order-dependent model, where bidirectional Dijkstra is not instance-optimal.

Christian Bertram, Mads Vestergaard Jensen, Mikkel Thorup et al. · 1 citation

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.