R icon indicating copy to clipboard operation
R copied to clipboard

Random walk restart

Open ArpitaHanjagi opened this issue 2 months ago • 1 comments

Algorithm: Random Walk with Restart (RWR)

Purpose: Computes relevance scores of nodes in a graph based on a random walker that restarts at a source node with a fixed probability.

Theory:

Represents graph as adjacency matrix.

At each step, walker either moves to a neighbor or restarts at source.

Iterates until probability vector converges.

Time Complexity: O(max_iter * V²) for adjacency matrix multiplication.

Space Complexity: O(V²) for adjacency matrix.

Input: Adjacency matrix, restart probability, source node, max iterations, tolerance.

Output: Vector of steady-state probabilities representing node relevance.

ArpitaHanjagi avatar Oct 20 '25 19:10 ArpitaHanjagi

This PR is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] avatar Nov 26 '25 00:11 github-actions[bot]

This PR was closed because it has been stalled for 7 days with no activity.

github-actions[bot] avatar Dec 04 '25 00:12 github-actions[bot]