How do you rank the whole web when anyone can stuff a page with keywords? Brin & Page's idea was to ignore the words and follow the links. Picture a bored "random surfer" clicking link after link forever — the fraction of time they spend on each page is its importance. A page is important if important pages link to it. Scroll through and watch ranks emerge, rebalance, and converge.
The dot is the surfer: it sits on a page, then jumps along one of that page's outgoing links (arrows) at random. Each node's size and brightness tracks the fraction of all time the surfer has spent there — its empirical PageRank. Watch the ranks climb and the bars settle. Click a node then another to toggle a link between them, and see the ranks rebalance.
The empirical visit-fractions wobble at first but settle onto the true PageRank. Sum of all ranks is always 1 — they're a probability distribution over pages.
Instead of waiting forever for one surfer, we can compute the answer directly. Power iteration repeatedly applies one rule to a rank vector until it stops changing:
r′ = (1−d)/N · 1 + d · ( links + dangling )
The damping factor d (Brin & Page used ≈0.85) is the chance the surfer follows a link; with chance 1−d it gets bored and teleports to a random page. Teleport is what makes PageRank well-defined: it rescues dangling pages (no outlinks) and prevents rank sinks / spider traps from hoarding all the rank. Drag d and watch the steady state shift; press Step to apply one iteration, or run to convergence.
Each bar pair shows this iteration (solid) vs the previous (faint outline). When the largest change Δ drops below 1e−4 the vector has reached the stationary distribution — the answer is independent of where you started.
A link is a vote — weighted by the voter's own rank. If a highly-ranked page links to you, that vote counts more than a vote from an obscure page; and a page that links to many pages splits its vote among them. That's the recursive heart of it: your rank depends on the ranks of who links to you, which depend on theirs, and so on. PageRank is the self-consistent solution to that circular definition.
It's a Markov chain. The random surfer is a random walk on the web graph. The transition rule (follow a link with probability d, teleport with 1−d) defines a stochastic matrix whose stationary distribution — the long-run fraction of time spent on each page — is the PageRank vector. Equivalently, PageRank is the dominant eigenvector (eigenvalue 1) of that matrix, and power iteration is just the standard way to find it. The teleport term makes the chain irreducible and aperiodic, which (by Perron–Frobenius) guarantees a unique answer that converges no matter where you start. The ranks always sum to 1.
Why it beat keyword counting. In 1998 search engines ranked pages mostly by how often your query words appeared — trivially gamed by stuffing invisible keywords. Brin & Page (then PhD students at Stanford) proposed ranking by the link structure of the web instead: votes from across the whole web, hard to fake because you can't force other reputable sites to link to you. That insight — published as "The Anatomy of a Large-Scale Hypertextual Web Search Engine" — became the core of Google.