Lune

VLDB2025Top-tier venue

Approximate 2-hop neighborhoods on incremental graphs: An efficient lazy approach

Luca Becchetti, Andrea Clementi, Luciano Gualà, Luca Pepè Sciarria, Alessandro Straziota, Matteo Stromieri

Abstract

In this work, we propose, analyze and empirically validate a lazy-update approach to maintain accurate approximations of the 2-hop neighborhoods of dynamic graphs resulting from sequences of edge insertions.

We first show that under random input sequences, our algorithm exhibits an optimal trade-off between accuracy and insertion cost: it only performs [EQUATION] (amortized) updates per edge insertion, while the estimated size of any vertex's 2-hop neighborhood is at most a factor ε away from its true value in most cases, regardless of the underlying graph topology and for any ε > 0.

As a further theoretical contribution, we explore adversarial scenarios that can force our approach into a worst-case behavior at any given time t of interest. We show that while worst-case input sequences do exist, a necessary condition for them to occur is that the girth of the graph released up to time t be at most 4.

Finally, we conduct extensive experiments on a collection of real, incremental social networks of different sizes, which typically have low girth. Empirical results are consistent with and typically better than our theoretical analysis anticipates. This further supports the robustness of our theoretical findings: forcing our algorithm into a worst-case behavior not only requires topologies characterized by a low girth, but also carefully crafted input sequences that are unlikely to occur in practice. Combined with standard sketching techniques, our lazy approach proves an effective and efficient tool to support key neighborhood queries on large, incremental graphs, including neighborhood size, Jaccard similarity between neighborhoods and, in general, functions of the union and/or intersection of 2-hop neighborhoods.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

Questions to start from

Lune can draw on

the full paper · related work

Get the answer

Free to start. No credit card required.

Lineage

Builds onCited byLeft to right by year; the more cited, the higher.

Builds on2

  1. Dynamic Spanning Trees for Connectivity Queries on Fully-dynamic Undirected GraphsQing Chen, Oded Lachish, Sven Helmer, Michael H. BöhlenVLDB 2022 · 19 citations
  2. Effective Indexing for Dynamic Structural Graph ClusteringFangyuan Zhang, Sibo WangVLDB 2022 · 18 citations

Related papers

  1. Deterministic Incremental APSP with Polylogarithmic Update Time and StretchSebastian Forster, Yasamin Nazari, Maximilian Probst GutenbergSTOC 2023 · 2 citations
  2. Efficient Maintenance of 2-Hop Labeling Index on Dynamic Small-World GraphsYuanyuan Zeng, Yixiang Fang, Kun Chen, Yangfan Li et al.VLDB 2025 · 2 citations
  3. Dynamic Matching with Better-than-2 Approximation in Polylogarithmic Update TimeSayan Bhattacharya, Peter Kiss, Thatchaphol Saranurak, David WajcSODA 2023 · 11 citations
  4. DLCR: Efficient Indexing for Label-Constrained Reachability Queries on Large Dynamic GraphsXin Chen, You Peng, Sibo Wang, Jeffrey Xu YuVLDB 2022 · 26 citations
  5. Efficient η\eta-Threshold Maintenance in Dynamic Uncertain GraphsYu Chen, Qing Liu, Yifan Zhu, Yunjun GaoICDE 2025 · 1 citation
Dusk over the sea between two cliffs drawn in fine vertical lines