Toggle Tree: A New Data Structure for Efficient Parallel Graph Processing
Abstract
We present the Toggle Tree, a parallel data structure for frontier-based graph algorithms. A Toggle Tree is used to represent a subset of vertices using hierarchical bit vectors, enabling efficient parallel updates, traversal, and set-wise reductions without global packing. It provides an IndexSet interface that unifies a wide range of parallel graph algorithms under a common abstraction of frontiers and active sets, and an IndexMap interface that also incorporates priority-queue semantics. Specifically, the Toggle Tree aims to combine the advantages of traditional sparse and dense frontier representations, offering both provable theoretical guarantees and high efficiency in practice. Using Toggle Trees, we implement five fundamental graph algorithms, including breadth-first search (BFS), k-core, degree-based graph coloring, single-source shortest paths using Bellman-Ford, and weighted-BFS (wBFS). Across a diverse set of large real-world graphs and the five graph problems, our implementations outperform state-of-the-art baselines, including GBBS and PASGAL, achieving substantial speedups. Our code is publicly available.
Create a lesson
Metadata
- Comments
- 18 pages, 7 figures, 5 tables. To appear in PPoPP 2027. Code: https://github.com/ucrparlay/toggle-tree
Related papers
Asymptotically Optimal Representation of Tree-Like Graphs
Shared title terminologycs.DSJohannes Fischer
ObliGraph: Graph Pattern Query Processing with Full and Differential Obliviousness
Shared title terminologycs.DSLyu Xu, Xinyi Zhang, Qichen Wang
Subexponential algorithms for structural parameterizations of Vertex Cover in geometric graphs
Shared title terminologycs.DSMarin Bougeret, Juan Pablo Bravo, Daniel Gonçalves
SAT-Driven Exact Treewidth via Safe Separators and Structure-Aware Encodings
Shared title terminologycs.DSYannik Krone
Online Network Design with Batch Processing
Shared title terminologycs.DSTianhang Lu, Runtian Ren, Shengcai Liu
Improved Exact Algorithms and Parameterized Results for Monopolar Graph Problems
Shared title terminologycs.DSSoumen Mandal, Ashutosh Rai