Subscribe
AI
7 min read

What Is PageRank? The 1998 Eigenvector That Still Ranks the Web

PageRank did not die with the Google Toolbar. The eigenvector trick from a 1998 Stanford paper now ranks code files for coding agents, retrieval graphs for RAG, and the web corpora that train models.

What Is PageRank? The 1998 Eigenvector That Still Ranks the Web

In 1998, two Stanford graduate students published a search engine paper that contained one unusually durable idea: rank a web page by who links to it, and weight those links by the importance of the pages they come from. The idea was called PageRank, and it powered Google's rise from a prototype indexing 24 million pages to the dominant search engine on Earth. Twenty-eight years later, Google calls PageRank "one of our core ranking systems," and versions of it now rank things Larry Page never modeled: source code files, retrieved documents, and citation graphs feeding large language models.

This is an explainer of what PageRank actually computes, why it worked when its competitors faded, how it was gamed into near-irrelevance in search, and why the same eigenvector keeps showing up inside modern AI tooling.

A vote that votes itself

Before PageRank, search engines ranked pages mostly by words. A page that repeated your query term often, or had it in a title tag, rose to the top. That scheme was cheap to game: keyword stuffing cost nothing. It also ignored the one signal the web itself was generating constantly. Every hyperlink is an editorial act. Somebody read a page and pointed at it.

Larry Page and Sergey Brin, working at Stanford from 1996 on search research that grew out of the university's WebBase project, built the intuition into an algorithm. The insight was recursive. A link from a low-quality page is a weak endorsement; a link from a page that many reputable pages link to is a strong one. But "reputable" is defined by links, so importance is defined in terms of itself.

Brin and Page's 1998 paper, "The Anatomy of a Large-Scale Hypertextual Web Search Engine," presented the mechanics at a time when they had mapped "as many as 518 million of these hyperlinks" for a prototype whose full-text and hyperlink database covered at least 24 million pages. They called PageRank "an objective measure of its citation importance that corresponds well with people's subjective idea of importance."

The formula fits on one line. The PageRank of page A equals a baseline term plus a damping factor times, summed over every page pointing at A, the PageRank of the referring page divided by its number of outbound links. In the paper they set the damping factor at the value that became famous: 0.85. In plain language: a page inherits a share of the rank of every page linking to it, divided fairly among that page's outgoing links, and everyone gets a floor of rank so nothing dies completely.

Eigenvector at internet scale

The recursion has a fixed point, and finding it is linear algebra. The equivalence was made explicit in Kurt Bryan and Tanya Leise's 2006 SIAM Review explainer, "The $25,000,000,000 Eigenvector: The Linear Algebra behind Google": assemble the link graph into a giant column-normalized matrix, mix in a small uniform random-jump term (reportedly 0.15, the complement of the damping factor), and the PageRank vector is the principal eigenvector of that matrix. You get it by power iteration, multiplying by the matrix again and again, which converges quickly because the web graph is sparse and the mixing term tames the pathologies. Without it, rank flows into "rank sinks," pages or cliques that absorb all the score and leak nothing, since a page with no outgoing links has nowhere to pass its vote.

The intuitive reading of the same math is the random surfer: imagine a user who follows links from page to page 85 percent of the time and jumps to a random page the rest. PageRank is the long-run probability of finding the surfer on any given page. Importance is foot traffic under a model of how people actually click through hypertext.

A directed graph of nodes with solid link arrows and dotted random-jump arcs converging on one prominent node

Academia arrived at the neighborhood simultaneously from the graph-theory side. Jon Kleinberg's 1999 Journal of the ACM paper on hubs and authorities formalized a related intuition: good "authorities" are linked by good "hubs," and good hubs point at good authorities, a mutually reinforcing pair of scores computed from the same link graph. Taher Haveliwala showed in 2002 that the "who links to you" weighting could be made query-aware with topic-sensitive PageRank, computing a small set of topic-biased rank vectors instead of one global number. That generalization, personalizing the random surfer to start near pages relevant to the current question, turns out to matter for the second half of this story.

The metric that everybody optimized

Google made PageRank visible. The Google Toolbar displayed a 0-to-10 score for every page, and the SEO industry treated it like a credit rating. Predictably, people optimized the score rather than the substance. Link farms and reciprocal-link rings were built purely to inflate inbound "votes" from pages that themselves had no readers. Google bombing, in which coordinated link campaigns with identical anchor text made a target page the top result for mocking phrases, demonstrated that rank could be steered, not just gamed.

Google's own messaging shifted with it. A 2011 Search Central post told webmasters to think "beyond PageRank" and stop chasing the toolbar number. On March 7, 2016, Google killed the toolbar PageRank feed entirely, confirming the public metric was dead while the internal link-analysis machinery kept running. As Google's current ranking systems guide puts it: "How PageRank works has evolved a lot since then, and it continues to be part of our core ranking systems." Link-signal weighting now flows through dozens of classifiers rather than the textbook eigenvector, and Google's Gary Illyes has described using PageRank-style importance to schedule crawling, so that important URLs get revisited more often.

The lesson generalizes beyond Google: any single, legible, score-based ranking becomes a target, and the fix is not to abandon the signal but to entangle it in enough context that gaming it costs more than it pays.

Why AI tooling still runs it

Here is the part that belongs on this site. The link graph Google built PageRank for is now, directly, AI infrastructure. Common Crawl, whose open web corpora are a standard ingredient of model training, publishes host- and domain-level web graphs with computed ranks, including PageRank alongside harmonic centrality, across hundreds of millions of hosts per release. When a model provider filters or samples an open crawl, graph-centrality scores are a cheap way to decide which domains represent the web rather than its spam.

More concretely, PageRank has been reborn as a context-selection tool for coding agents and retrieval systems, and the shape is exactly Haveliwala's: personalized, query-biased rank over a reference graph.

Aider, the open-source coding agent whose repo-map technique shaped a generation of tools, sends a language model a compressed map of an entire repository instead of the repository. It parses every file with tree-sitter to extract symbol definitions, builds a graph where files are nodes and code references are edges, and runs a graph-ranking pass so the most important signatures fit a token budget that defaults to 1,000 tokens. Source-code analyses of the implementation and a 2026 survey of coding-agent architectures ("Inside the Scaffold," arXiv 2604.03515) describe the ranking step explicitly as personalized PageRank with conversation-aware boosts: identifiers mentioned in the chat get roughly a 10x weight, and files added to the chat get about a 50x. The agent is not "understanding" the codebase. It is letting the link structure of the code say what matters for this question.

A graph of file nodes with reference arrows feeding into a ranked stack ordered by importance

Retrieval-augmented generation went the same direction on documents. A 2025 survey of graph-based RAG (arXiv 2503.04338) treats personalized PageRank as a core retrieval primitive: seed a random surfer at the entities a query touches, let rank flow through the knowledge graph, and return the nodes the propagation says are relevant. Citation-network retrieval systems use the same trick to promote papers that are structurally central to a corpus rather than merely keyword-matched. It is the 1998 idea with the web graph replaced by code dependency graphs, knowledge graphs, and bibliography graphs.

The durable core

What survived the search-spam wars is not Google's 1998 implementation, which Google itself has layered over beyond recognition. It is the recursive bet: that structure is signal, that importance is best defined by the network of things pointing at you, and that the fixed point of that definition is computable with a matrix multiply and patience. Every time an agent ranks a source file above a README because half the repository imports it, PageRank is doing something.

The number in the toolbar is dead. The eigenvector runs everything else.

Sources

AILLMeducational