# BD-Index: Scalable Biharmonic Distance Queries on Large Graphs via Divide-and-Conquer Indexing

arXiv: https://arxiv.org/abs/2512.02929 · HTML: https://mlsanity.com/paper/2512.02929/

## Key facts

- No citing papers in the map yet (data through 26 Nov 2026).
- Builds on 24 of its 82 references that are in the map.
- Submitted 2 Dec 2025.

## Builds on (most cited first, 24 of 24)

- [Multi-scale Attributed Node Embedding](https://mlsanity.com/paper/1909.13021/) (2019)
- [Understanding over-squashing and bottlenecks on graphs via curvature](https://mlsanity.com/paper/2111.14522/) (2021)
- [Understanding Oversquashing in GNNs through the Lens of Effective Resistance](https://mlsanity.com/paper/2302.06835/) (2023)
- [PageRank beyond the Web](https://mlsanity.com/paper/1407.5107/) (2014)
- [Approximate Gaussian Elimination for Laplacians: Fast, Sparse, and Simple](https://mlsanity.com/paper/1605.02353/) (2016)
- [Fast Exact Shortest-Path Distance Queries on Large Networks by Pruned Landmark Labeling](https://mlsanity.com/paper/1304.4661/) (2013)
- [Robust and Practical Solution of Laplacian Equations by Approximate Elimination](https://mlsanity.com/paper/2303.00709/) (2023)
- [Just SLaQ When You Approximate: Accurate Spectral Distances for Web-Scale Graphs](https://mlsanity.com/paper/2003.01282/) (2020)
- [Local Algorithms for Estimating Effective Resistance](https://mlsanity.com/paper/2106.03476/) (2021)
- [Fast Bidirectional Probability Estimation in Markov Models](https://mlsanity.com/paper/1507.05998/) (2015)
- [Biharmonic Distance and the Performance of Second-Order Consensus Networks with Stochastic Disturbances](https://mlsanity.com/paper/1709.02790/) (2017)
- [A New Approach to Estimating Effective Resistances and Counting Spanning Trees in Expander Graphs](https://mlsanity.com/paper/2211.01468/) (2022)
- [Computing Effective Resistances on Large Graphs Based on Approximate Inverse of Cholesky Factor](https://mlsanity.com/paper/2303.03617/) (2023)
- [Stable Tree Labelling for Accelerating Distance Queries on Dynamic Road Networks](https://mlsanity.com/paper/2501.17379/) (2025)
- [Approximating the Stationary Probability of a Single State in a Markov chain](https://mlsanity.com/paper/1312.1986/) (2013)
- [Hop Doubling Label Indexing for Point-to-Point Distance Querying on Scale-Free Networks](https://mlsanity.com/paper/1403.0779/) (2014)
- [Sublinear Distance Labeling](https://mlsanity.com/paper/1507.02618/) (2015)
- [Hopsets with Constant Hopbound, and Applications to Approximate Shortest Paths](https://mlsanity.com/paper/1605.04538/) (2016)
- [Beyond Highway Dimension: Small Distance Labels Using Tree Skeletons](https://mlsanity.com/paper/1609.00512/) (2016)
- [Fast and Compact Exact Distance Oracle for Planar Graphs](https://mlsanity.com/paper/1702.03259/) (2017)
- [Signed Distance-based Deep Memory Recommender](https://mlsanity.com/paper/1905.00453/) (2019)
- [Fast Query of Biharmonic Distance in Networks](https://mlsanity.com/paper/2408.13538/) (2024)
- [Dual-Hierarchy Labelling: Scaling Up Distance Queries on Dynamic Road Networks](https://mlsanity.com/paper/2506.18013/) (2025)
- [Biharmonic Distance of Graphs and its Higher-Order Variants: Theoretical Properties with Applications to Centrality and Clustering](https://mlsanity.com/paper/2406.07574/) (2024)

## Abstract (arXiv)

Biharmonic distance (bd) is a powerful graph distance metric with many applications, including identifying critical links in road networks and mitigating over-squashing problem in gnn. However, computing bd is extremely difficult, especially on large graphs. In this paper, we focus on the problem of single-pair bd query. Existing methods mainly rely on random walk-based approaches, which work well on some graphs but become inefficient when the random walk cannot mix rapidly.To overcome this issue, we first show that the biharmonic distance between two nodes s,t, denoted by b(s,t), can be interpreted as the distance between two random walk distributions starting from s and t. To estimate these distributions, the required random walk length is large when the underlying graph can be easily cut into smaller pieces. Inspired by this observation, we present novel formulas of bd to represent b(s,t) by independent random walks within two node sets Vs, Vt separated by a small cut set Vcut, where VscupVtcupVcut=V is the set of graph nodes. Building upon this idea, we propose bindex, a novel index structure which follows a divide-and-conquer strategy. The graph is first cut into pieces so that each part can be processed easily. Then, all the required random walk probabilities can be deterministically computed in a bottom-top manner. When a query comes, only a small part of the index needs to be accessed. We prove that bindex requires O(n· h) space, can be built in O(n· h· (h+dmax)) time, and answers each query in O(n· h) time, where h is the height of a hierarchy partition tree and dmax is the maximum degree, which are both usually much smaller than n.
