小树宽图上的高效精确电阻距离计算:一种标记方法
Efficient Exact Resistance Distance Computation on Small-Treewidth Graphs: a Labelling Approach
AI总结:
针对小树宽图上现有电阻距离计算方法效率低、仅能近似求解的问题,提出基于树分解的TreeIndex索引方法,通过紧凑标记实现精确高效查询,在大规模路网上验证了其优于现有方法的性能与可扩展性。
摘要:
电阻距离计算是图分析中的一个基础问题,但现有基于随机游走的方法仅限于近似求解,且在小树宽图(例如路网)上效率低下。相比之下,最短路径距离计算通过利用割性质和树分解,在这类图上实现了极高的效率。受此差异启发,我们首先分析了电阻距离的割性质。虽然由于矩阵运算成本高昂,直接推广该性质被证明不可行,但我们通过结合树分解克服了这一限制,揭示出电阻距离$r(s,t)$仅取决于从$s$和$t$到分解树根节点的路径上的标记。这一洞见催生了紧凑的标记结构。在此基础上,我们提出了TreeIndex(树索引),这是一种新颖的索引方法,能以$O(n \cdot h_{\mathcal{G}}^2 \cdot d_{\max})$的时间构建大小为$O(n \cdot h_{\mathcal{G}})$的电阻距离标记,其中$h_{\mathcal{G}}$(树高)和$d_{\max}$(最大度)在许多真实世界的小树宽图(例如路网)中表现为小常数。我们的标记支持$O(h_{\mathcal{G}})$时间的精确单对查询和$O(n \cdot h_{\mathcal{G}})$时间的单源查询。大量实验表明,TreeIndex的性能显著优于现有最优方法。例如,在完整的美国路网上,它(单线程)在7小时内构建了405GB的标记,且精确单对查询响应时间为$10^{-3}$秒,单源查询响应时间为190秒——这是首个可扩展到如此大规模图的精确方法。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。