Efficient Algorithms for Computing Random Walk Centrality

Changan Liu, Zixuan Xie, Ahad N. Zehmakan, Zhongzhi Zhang

Abstract

Random Walk Centrality (RWC) is a powerful metric for identifying influential nodes in a network by measuring the average "hitting time" from all other nodes. Despite its superior discriminating power, RWC has historically been computationally prohibitive for large-scale graphs due to its reliance on matrix inversion. This paper presents a breakthrough pivot-based formulation that reduces the complexity of RWC computation to a single global linear system solve. We introduce two near-linear time algorithms—FASTCHOL and FASTWALK—that enable RWC calculation on graphs with over 10 million nodes. Our evaluation demonstrates up to a 10x speedup and a 35x reduction in memory usage compared to previous state-of-the-art methods.

Introduction

In network analysis, centrality measures identify the most critical nodes within a structure. While local measures like degree centrality are easy to compute, they fail to capture global network dynamics. Random Walk Centrality (RWC) addresses this by considering all possible paths, yet its exact calculation requires $O(n^3)$ operations. Even modern approximation methods often require hundreds of calls to a Laplacian solver, making them impractical for massive datasets. This work addresses these scalability bottlenecks by deriving a new mathematical framework that requires only one "pivot" solve to recover RWC for all nodes.

Methods

The core of this research is a new pivot-based formulation (Theorem III.1). The authors proved that by fixing a single "pivot" node as a reference, global structural information can be captured through one linear system solve, transforming the remaining task into a local diagonal estimation problem.

Algorithm 1: APPRWC, the core pivot-based approximation framework for Random Walk Centrality.

Building on this foundation, two algorithmic frameworks were developed:

  1. FASTCHOL (Algebraic Approach): This method utilizes Incomplete Cholesky Factorization combined with a "sliding window" technique and matrix sparsification. By focusing on nearby columns and discarding insignificant values, it converts heavy matrix operations into efficient, sparse computations. It employs an adaptive window size to prioritize high-degree "hub" nodes typical of scale-free networks.
  2. FASTWALK (Probabilistic Approach): This algorithm exploits the relationship between matrix inverses and Rooted Spanning Trees. By using Wilson’s algorithm to sample random spanning trees, the authors map the expected number of node visits in these trees to the values required for RWC estimation.

Experimental Evaluation

The algorithms were tested on real-world networks from the SNAP repository, ranging from the Facebook graph (4k nodes) to the hetero-LiveJournal graph (12.6M nodes).

Key Results

  • Scalability and Memory: Previous state-of-the-art methods (e.g., APPSOLVER) failed on graphs larger than 3 million nodes due to memory exhaustion. In contrast, FASTCHOL and FASTWALK successfully processed 12.6M nodes with a 35x reduction in peak memory usage.
  • Speed: FASTCHOL processed the largest 10M+ node graph in approximately 4,000 seconds, maintaining a low 3% mean relative error.
  • Accuracy: FASTWALK emerged as the most accurate method, achieving a mean relative error of just 0.5% and the highest Kendall tau ranking correlation.

Conclusion

By leveraging a pivot-based mathematical formulation, this work significantly advances the feasibility of using Random Walk Centrality for massive network analysis. While the current methods provide high-accuracy approximations, future work will focus on extending these techniques to dynamic, evolving graphs and generalizing the framework to compute group centrality measures. These advancements pave the way for more sophisticated influence analysis in real-time social and information networks.

Summary updated

BibTeX
@article{liu2026efficient,
  author = {Changan Liu and Zixuan Xie and Ahad N. Zehmakan and Zhongzhi Zhang},
  title = {{Efficient Algorithms for Computing Random Walk Centrality}},
  journal = {IEEE Trans. Knowl. Data Eng.},
  year = {2026},
  doi = {10.1109/tkde.2025.3621520},
}
Figure