WIPIVERSE All articles

Biased random walk on a graph

A biased random walk on a graph is a stochastic process in which a walker moves from vertex to vertex according to transition probabilities that are not uniform but are weighted according to some predefined criteria.

Mathematical formulation
Consider a finite, directed or undirected graph $G = (V, E)$ with vertex set $V$ and edge set $E$. For each directed edge $(i, j) \in E$ a non‑negative weight $w_{ij}$ is assigned. The transition probability from vertex $i$ to vertex $j$ is defined as

$$ P_{ij} = \frac{w_{ij}}{\sum_{k:(i,k)\in E} w_{ik}} , $$

where the denominator normalizes the weights of all outgoing edges from $i$. When all weights are equal, $P_{ij}$ reduces to the uniform random walk. The bias is introduced by choosing the weights according to a rule that reflects a desired preference, such as degree, centrality, edge attributes, or external information.

Common biasing strategies

Strategy Description
Degree‑biased walk Transition probabilities are proportional to the degree (or strength) of the target vertex, encouraging movement toward high‑degree nodes.
Edge‑weight bias Uses intrinsic edge weights (e.g., traffic capacity, similarity scores) directly as $w_{ij}$.
Potential‑based bias Assigns a scalar potential $\phi(i)$ to each vertex; weights may be set to $w_{ij}=e^{\beta[\phi(j)-\phi(i)]}$, where $\beta$ controls the strength of the bias.
Teleportation (PageRank‑type) With probability $\alpha$ the walker follows the biased transition matrix, and with probability $1-\alpha$ it jumps to a vertex chosen from a prescribed distribution.
Community‑aware bias Increases transition probability to vertices within the same community or cluster, based on a prior partitioning.

Properties and applications

  • Stationary distribution – For a strongly connected graph with aperiodic transitions, the biased walk possesses a unique stationary distribution $\pi$ satisfying $\pi = \pi P$. The distribution reflects the imposed bias; for example, a degree‑biased walk yields $\pi_i \propto \text{deg}(i),w_i$ where $w_i$ incorporates the edge weights.
  • Mixing time – The rate at which the walk converges to its stationary distribution depends on the bias; certain biases can accelerate or slow mixing relative to the uniform walk.
  • Network sampling – Biased walks are employed to sample nodes with probabilities proportional to attributes of interest (e.g., sampling high‑degree nodes for monitoring).
  • Search and navigation – In peer‑to‑peer or recommendation systems, biasing toward nodes with higher relevance scores improves query success rates.
  • Spectral methods – The transition matrix $P$ defines a Markov operator whose eigenvalues and eigenvectors are used in spectral clustering, manifold learning, and graph embedding.

Relation to other concepts

  • Random walk with restart – A special case of biased walks that includes a fixed probability of returning to a seed vertex.
  • Laplacian dynamics – The biased walk can be expressed via a weighted graph Laplacian $L = D - W$ where $D$ is the diagonal matrix of out‑strengths; continuous‑time analogues lead to biased diffusion processes.
  • Metropolis–Hastings algorithm – Provides a method to construct a biased walk with a desired stationary distribution by adjusting acceptance probabilities.

Typical implementation steps

  1. Define the graph $G$ and assign edge weights $w_{ij}$ according to the chosen biasing rule.
  2. Compute the row‑stochastic transition matrix $P$ by normalizing each row of the weight matrix.
  3. Simulate the walk: starting from an initial vertex, repeatedly select the next vertex $j$ with probability $P_{ij}$.
  4. Optionally, collect statistics (visitation frequencies, hitting times) or use the walk to compute measures such as personalized PageRank.

References and further reading
Biased random walks on graphs are discussed in the literature on network science, Markov chain theory, and information retrieval. Pertinent topics appear in textbooks on stochastic processes and in research articles concerning graph‑based ranking, community detection, and graph sampling. Specific examples include studies of degree‑biased walks for network exploration, potential‑driven walks for navigation in weighted networks, and teleportation‑augmented walks underlying the PageRank algorithm.

Browse

More topics to explore

    Browse all articles