NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Brief Announcement: Non-Blocking Dynamic Unbounded Graphs with Worst-Case Amortized Bounds

Bapi Chatterjee, Sathya Peri, Muktikanta SaDISC 2021

TL;DR

This paper introduces PANIGRAHAM, a novel concurrent graph data structure that allows simultaneous updates (vertices and edges) and complex queries (BFS, SSSP, BC) without blocking other operations. It achieves provable linearizability and non-blocking progress with a light memory footprint, outperforming existing solutions in several benchmarks.

What Problem Does This Paper Address?

Real-world applications like social networks, semantic web, and blockchains often involve massive, dynamic graphs that are constantly being updated. Analyzing these graphs requires efficient query operations (like finding shortest paths or network centrality). Existing graph libraries struggle with concurrency, often resorting to blocking mechanisms that limit scalability. Furthermore, many don't natively support vertex updates, and some have a high memory overhead. This paper tackles the challenge of building a graph data structure that is both highly concurrent (non-blocking) and supports dynamic updates of both vertices and edges, while still providing efficient execution of complex graph queries.

Methods

The core of PANIGRAHAM is a concurrent, non-blocking dynamic directed graph implemented using an adjacency list. This structure is built upon a composition of lock-free data structures: a lock-free hash table for vertices and multiple lock-free binary search trees (BSTs) for managing the outgoing edges from each vertex. Vertex and edge updates are handled by their respective lock-free structures. For the query operations (BFS, SSSP, BC), the authors employ a technique called "specialized partial snapshots." To ensure linearizability in a dynamic concurrent setting, they utilize a "multi-scan/validate" approach. The paper also provides theoretical proofs for the linearizability and non-blocking progress of their algorithms.

Datasets

The paper mentions using a "standard dataset R-MAT graphs" for their experimental evaluation. They also refer to "real-life graphs" in the full version of the paper. No new benchmarks were introduced.

Key Insights and Ideas

  • Composing Lock-Free Structures: The elegant combination of a lock-free hash table for vertices and lock-free BSTs for edges is a key enabler for concurrent updates.
  • Partial Snapshots for Queries: Using partial snapshots for complex queries in a dynamic, concurrent environment is a clever way to balance query complexity with performance and correctness.
  • Multi-Scan/Validate for Linearizability: This technique is crucial for ensuring that even though operations might be partial, the overall system behaves as if operations happened atomically, a critical property for concurrent systems.
  • Worst-Case Amortized Bounds: Proving worst-case amortized bounds for non-blocking operations is a significant theoretical contribution, offering strong guarantees on performance.

Key Results

The experimental results, visualized in Figure 2, demonstrate that PANIGRAHAM (PG-Cn) significantly outperforms existing solutions like Stinger and Ligra in terms of latency, often by orders of magnitude, across various graph sizes and thread counts. This performance gain is observed for BFS, SSSP, and BC queries. The paper also highlights the effectiveness of their approach in terms of scalability and memory footprint (though detailed memory comparisons are deferred to the full version).

Limitations and Future Work

The paper is a "Brief Announcement," and details regarding the proofs of linearizability and non-blocking progress, as well as a more extensive comparison of memory footprints, are deferred to the full version [8]. The experimental evaluation focuses on latency and scalability. Future work would likely involve exploring a wider range of graph algorithms, further optimizing the data structure, and potentially investigating its performance on even larger and more complex real-world graph datasets.

Summary updated

Abstract

This paper reports a new concurrent graph data structure that supports updates of both edges and vertices and queries: Breadth-first search, Single-source shortest-path, and Betweenness centrality. The operations are provably linearizable and non-blocking.
BibTeX
@inproceedings{chatterjee2021brief,
  author = {Bapi Chatterjee and Sathya Peri and Muktikanta Sa},
  title = {{Brief Announcement: Non-Blocking Dynamic Unbounded Graphs with Worst-Case Amortized Bounds}},
  booktitle = {DISC},
  year = {2021},
  url = {https://openreview.net/forum?id=Exmyaecjc6},
}
Figure