English

Theoretically and Practically Efficient Resistance Distance Computation on Large Graphs

Machine Learning 2026-01-19 v1 Databases

Abstract

The computation of resistance distance is pivotal in a wide range of graph analysis applications, including graph clustering, link prediction, and graph neural networks. Despite its foundational importance, efficient algorithms for computing resistance distances on large graphs are still lacking. Existing state-of-the-art (SOTA) methods, including power iteration-based algorithms and random walk-based local approaches, often struggle with slow convergence rates, particularly when the condition number of the graph Laplacian matrix, denoted by κ\kappa, is large. To tackle this challenge, we propose two novel and efficient algorithms inspired by the classic Lanczos method: Lanczos Iteration and Lanczos Push, both designed to reduce dependence on κ\kappa. Among them, Lanczos Iteration is a near-linear time global algorithm, whereas Lanczos Push is a local algorithm with a time complexity independent of the size of the graph. More specifically, we prove that the time complexity of Lanczos Iteration is O~(κm)\tilde{O}(\sqrt{\kappa} m) (mm is the number of edges of the graph and O~\tilde{O} means the complexity omitting the log\log terms) which achieves a speedup of κ\sqrt{\kappa} compared to previous power iteration-based global methods. For Lanczos Push, we demonstrate that its time complexity is O~(κ2.75)\tilde{O}(\kappa^{2.75}) under certain mild and frequently established assumptions, which represents a significant improvement of κ0.25\kappa^{0.25} over the SOTA random walk-based local algorithms. We validate our algorithms through extensive experiments on eight real-world datasets of varying sizes and statistical properties, demonstrating that Lanczos Iteration and Lanczos Push significantly outperform SOTA methods in terms of both efficiency and accuracy.

Keywords

Cite

@article{arxiv.2601.11159,
  title  = {Theoretically and Practically Efficient Resistance Distance Computation on Large Graphs},
  author = {Yichun Yang and Longlong Lin and Rong-Hua Li and Meihao Liao and Guoren Wang},
  journal= {arXiv preprint arXiv:2601.11159},
  year   = {2026}
}
R2 v1 2026-07-01T09:07:20.562Z