In this work, we propose, analyze and empirically validate a lazyupdate 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 (formula presented) (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.

Approximate 2-hop neighborhoods on incremental graphs: an efficient lazy approach / Becchetti, Luca; Clementi, Andrea; Gualá, Luciano; Sciarria, Luca Pepè; Straziota, Alessandro; Stromieri, Matteo. - 18:11(2025), pp. 3937-3950. ( 51st International Conference on Very Large Data Bases, VLDB 2025 gbr ) [10.14778/3749646.3749665].

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

Becchetti, Luca;Clementi, Andrea;Stromieri, Matteo
2025

Abstract

In this work, we propose, analyze and empirically validate a lazyupdate 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 (formula presented) (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.
2025
51st International Conference on Very Large Data Bases, VLDB 2025
dynamic graphs; streaming; probabilistic analysis
04 Pubblicazione in atti di convegno::04b Atto di convegno in volume
Approximate 2-hop neighborhoods on incremental graphs: an efficient lazy approach / Becchetti, Luca; Clementi, Andrea; Gualá, Luciano; Sciarria, Luca Pepè; Straziota, Alessandro; Stromieri, Matteo. - 18:11(2025), pp. 3937-3950. ( 51st International Conference on Very Large Data Bases, VLDB 2025 gbr ) [10.14778/3749646.3749665].
File allegati a questo prodotto
Non ci sono file associati a questo prodotto.

I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/11573/1755148
 Attenzione

Attenzione! I dati visualizzati non sono stati sottoposti a validazione da parte dell'ateneo

Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus 0
  • ???jsp.display-item.citation.isi??? ND
social impact