arXiv:2509.05129cs.DBcs.DM2025-09中稿 · SIGMOD 2026被引 1

提出新方法在小树宽图上高效计算精确电阻距离。

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

  • 用树分解标签化路径,只依赖根到顶点的标签计算电阻距离。
  • 构建405GB索引仅需7小时,单对查询耗时0.001秒,单源查询190秒。
  • 首次实现对全美道路网等大图的精确电阻距离快速查询。

电阻距离计算是图分析中的基础问题,现有基于随机游走的方法仅能提供近似解,且在小树宽图(如道路网络)上效率低下。相比之下,最短路径计算可借助割性质与树分解实现高效计算。受此启发,我们首先分析了电阻距离的割性质,发现直接推广不切实际,因涉及高成本矩阵运算。为此,通过结合树分解,揭示电阻距离 $r(s,t)$ 仅依赖于 $s$、$t$ 到分解根节点路径上的标签。基于此,提出 reeindex,一种新索引方法:在 $O(n imes h_{ ext{G}}^2 imes d_{ ext{max}})$ 时间内构建大小为 $O(n imes h_{ ext{G}})$ 的标签结构,其中 $h_{ ext{G}}$(树高)、$d_{ ext{max}}$(最大度)在真实小树宽图中常为小常数。该标签支持单对查询 $O(h_{ ext{G}})$ 时间、单源查询 $O(n imes h_{ ext{G}})$ 时间。实验表明,TreeIndex 显著优于现有方法:在全美道路网上,7小时构建405GB索引,单对查询耗时1毫秒,单源查询190秒——首个可扩展至此类大规模图的精确方法。

原文摘要 · Abstract (English)

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 small-treewidth 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 $r(s,t)$ depends only on labels along the paths from $s$ and $t$ 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 $O(n \cdot h_{\mathcal{G}})$ in $O(n \cdot h_{\mathcal{G}}^2 \cdot d_{\max})$ time, where $h_{\mathcal{G}}$ (tree height) and $d_{\max}$ (maximum degree) behave as small constants in many real-world small-treewidth graphs (e.g., road networks). Our labelling supports exact single-pair queries in $O(h_{\mathcal{G}})$ time and single-source queries in $O(n \cdot h_{\mathcal{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 (single-threaded) 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.

图算法电阻距离树分解索引

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。