Lune

SIGMOD2026Top-tier venue

Efficient Exact Resistance Distance Computation on Small-Treewidth Graphs: A Labelling Approach

Meihao Liao, Yueyang Pan, Rong-Hua Li, Guoren Wang

2026Year
1Citations

Abstract

Resistance distance computation is a fundamental problem in graph analysis, yet existing random walk-based methods are limited to approximate solutions and suffer from poor efficiency on smalltreewidth graphs (e.g., road networks). In contrast, shortest-path distance computation achieves remarkable efficiency on such graphs by leveraging cut properties and tree decompositions. Motivated by this disparity, we first analyze the cut property of resistance distance. While a direct generalization proves impractical due to costly matrix operations, we overcome this limitation by integrating tree decompositions, revealing that the resistance distance ๐‘Ÿ (๐‘ , ๐‘ก) depends only on labels along the paths from ๐‘  and ๐‘ก to the root of the decomposition. This insight enables compact labelling structures. Based on this, we propose TreeIndex, a novel index method that constructs a resistance distance labelling of size ๐‘‚ (๐‘› โ€ข โ„Ž G ) in ๐‘‚ (๐‘› โ€ขโ„Ž 2 G โ€ข๐‘‘ max ) time, where โ„Ž G (tree height) and ๐‘‘ max (maximum degree) behave as small constants in many real-world small-treewidth graphs (e.g., road networks). Our labelling supports exact singlepair queries in ๐‘‚ (โ„Ž G ) time and single-source queries in ๐‘‚ (๐‘› โ€ข โ„Ž G ) time. Extensive experiments show that TreeIndex substantially outperforms state-of-the-art approaches. For instance, on the full USA road network, it constructs a 405 GB labelling in 7 hours (singlethreaded) and answers exact single-pair queries in 10 -3 seconds and single-source queries in 190 seconds-the first exact method scalable to such large graphs.

Ask about this paper

Your agent reads all of it.

Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.

Questions to start from

Your agent calls

Luneget_paper_fulltext

Ask in Lune

Free to start. No credit card required.

lune papers fulltext a94f48e9-151c-4aa8-a03a-ed248e9222f3

Builds on18

Related papers

Dusk over the sea between two cliffs drawn in fine vertical lines