Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Transition matrix

For an undirected graph, let the degree of node ii be

ki=jAijk_i=\sum_j A_{ij}

The transition matrix for a simple random walk is

Pij=AijkiP_{ij}=\frac{A_{ij}}{k_i}

or, in matrix form,

P=D1AP=D^{-1}A

where D=diag(k1,,kn)D=\mathrm{diag}(k_1,\dots,k_n).

Random-walk dynamics

If p(t)p^{(t)} is the probability distribution over nodes at time tt, then the walk evolves as

p(t+1)=p(t)Pp^{(t+1)}=p^{(t)}P

Stationary distribution

A stationary distribution π\pi satisfies

π=πP,iπi=1\pi=\pi P, \qquad \sum_i \pi_i=1

So π\pi is both a probability distribution and a left eigenvector of PP with eigenvalue 1:

πP=1π\pi P = 1\cdot \pi

For a connected undirected graph,

πi=kijkj=ki2m\pi_i=\frac{k_i}{\sum_j k_j}=\frac{k_i}{2m}

Random walks are a simple but powerful way to model how load, information, exposure, or influence propagates through a network over time.