- Introduced by
- Page, Brin, Motwani & Winograd
- Year
- 1999
- Type
- Iterative link-based centrality algorithm
- Family
- Centrality
What does it do?
PageRank is a link-based centrality algorithm that assigns an importance score to each node in a directed graph, so that a node scores highly when many nodes, themselves scoring highly, point to it.
Larry Page, Sergey Brin, Rajeev Motwani, and Terry Winograd introduced it at Stanford University in 1999, and it became the ranking foundation of the Google search engine. It is now a standard method in network science and information retrieval.
The intuition behind the method
Imagine a random web surfer who clicks links at random, occasionally jumping to a completely random page rather than following a link. The fraction of time this surfer spends on each page, after infinitely many clicks, is that page's PageRank. A page visited often — because many popular pages link to it — receives a high score. The damping factor (typically 0.85) models the probability of continuing to click rather than jumping.
History
PageRank was developed at Stanford University by Larry Page and Sergey Brin as the ranking mechanism of their BackRub search project, which became Google in 1998. The technical report by Page, Brin, Motwani, and Winograd, dated 1999, is the citation given for the original description. The method popularised the use of an eigenvector-type link-analysis measure on large directed graphs and was followed by later link-based methods such as TrustRank. HITS, a link-analysis method developed around the same time, is a separate line of work rather than a derivative of PageRank.
When to use it
Choose PageRank when you need a global ranking of nodes in a directed graph and an edge means endorsement or influence, as with hyperlinks, citations, or follower relations. Its random-surfer reading treats the scores as long-run visiting probabilities of a Markov chain, which suits questions of the form 'which nodes does the network route attention to most often'. The standard form teleports uniformly to all nodes, so it yields one global ranking. If you need a ranking relative to a query or a seed set, a personalized variant that teleports only to a chosen set of nodes is the appropriate choice. Do not use it as a default for undirected networks, where symmetric measures such as eigenvector centrality are usually easier to interpret. If the question concerns nodes that bridge otherwise separate groups, betweenness centrality is the more suitable measure. HITS, which separates hub and authority roles, is an alternative when a directed graph must distinguish those two functions. Where in-links can be created cheaply, the scores should be treated with caution unless the manipulation is controlled.
Limitations and considerations
- The formulation is for directed graphs. On undirected networks each edge must be replaced by two opposite arcs, and the resulting scores then largely track node degree.
- The damping factor d controls both the link-following model and the convergence speed. Values closer to 1 slow convergence, and rankings can change noticeably when d is changed.
- Because scores are propagated along in-links, a node can gain rank by receiving links from a dense cluster of high-scoring nodes, which makes the measure vulnerable to link-farm manipulation and artificially built in-links.
- Nodes with no outgoing edges do not pass score onward, so unless they are handled explicitly the total score leaks out of the system and the ranking is distorted.
- The standard form teleports uniformly, so it produces a single global ranking and cannot answer query-specific questions; a personalized variant with a chosen teleportation set is needed for that.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Recursive weighting: an incoming link counts for more when it comes from a node that itself has a high score, so the measure reflects chains of endorsement rather than raw in-degree.
- Probabilistic reading: the scores can be interpreted as stationary visiting probabilities of a random-surfer Markov chain, which gives the ranking a precise meaning.
- The teleportation term (1-d)/N keeps the iteration well defined without requiring the graph to be strongly connected, so it can be applied to graphs with several components.
- Each iteration is a sparse matrix-vector product over the existing edges, so the method does not require a dense matrix and can be applied to graphs with large edge sets.
Applications
- Web search engine ranking: ordering search results by the global authority of web pages
- Academic citation analysis: identifying influential papers or journals in scientific literature networks
- Social network influence measurement: ranking users by the prestige of their followers
- Biological network analysis: finding hub proteins or genes in protein-interaction and gene-regulatory networks
- Recommendation systems: propagating preference signals through user-item bipartite graphs
How it works
How it works
Every node in the graph begins with an equal PageRank score of 1/N, where N is the total number of nodes. This uniform initialization ensures no node has an artificial head start and provides a valid probability distribution across the network before the first iteration.
Formula
PR^{(0)}(v_i) = \frac{1}{N}, \quad \forall\, i \in \{1, \ldots, N\}A column-stochastic transition matrix M is built from the graph's adjacency structure. Each entry M_ij equals 1 divided by the out-degree of node j if an edge from j to i exists, and zero otherwise. A node with no outgoing edges (a dangling node) leaves its column of zeros, so M is not yet column-stochastic. The usual remedy is to treat such a node as linking to every node, so that its score is redistributed uniformly across the graph.
Formula
M_{ij} = \begin{cases} \frac{1}{\text{out}(v_j)} & \text{if } (v_j \to v_i) \in E \\ 0 & \text{otherwise} \end{cases}The PageRank vector is updated iteratively using the random-surfer formula. With damping factor d (commonly 0.85), each node receives a base teleportation probability (1-d)/N plus d times the weighted sum of scores contributed by the nodes that link to it. The displayed update is written for graphs without dangling nodes. If dangling nodes exist, the score they hold is redistributed uniformly, which adds the term d times (sum of the scores of the dangling nodes)/N inside the update. This keeps the total score equal to 1. The normalized scores used here equal the unnormalized form (1-d) + d·sum(...) divided by N, which is the form some textbooks use, where scores sum to N. The step is repeated until the scores stabilize.
Formula
PR^{(t+1)}(v_i) = \frac{1-d}{N} + d \sum_{v_j \in \mathcal{B}(v_i)} \frac{PR^{(t)}(v_j)}{\text{out}(v_j)}After each iteration, the L1 norm of the change in the score vector is compared against a small tolerance epsilon (e.g., 1e-6). When the change falls below this threshold, the algorithm has converged and the current score vector is returned as the final PageRank distribution.
Formula
\left\| PR^{(t+1)} - PR^{(t)} \right\|_1 < \varepsilonCommon pitfalls
- Dangling nodes (no outgoing edges) break the column-stochastic property of the transition matrix. If they are ignored, the scores no longer sum to one; they should be redistributed as described in the transition step.
- Applying the directed formula to an undirected graph without the two-arc conversion discards the reverse direction of every tie and gives an asymmetric result that is hard to interpret.
- A loose tolerance epsilon can stop the iteration before the scores have stabilised, while a very tight one adds iterations that may not change the order of the nodes.
- Treating PageRank values as absolute importance. Because the scores sum to one over the graph, they are comparable within one graph and ranking, not across graphs of different size.
Frequently asked questions
What does the damping factor d represent and how should it be chosen?
The damping factor d (typically 0.85) is the probability that the random surfer follows a link rather than teleporting to a random node. Values close to 1 make the algorithm more sensitive to graph structure but slower to converge and more prone to rank sinks; values close to 0 push the scores toward uniform. 0.85 is the conventional default in the standard formulation, not a value derived from theory for every graph, so it is worth checking how sensitive the ranking is to d.
How does PageRank differ from degree centrality?
Degree centrality counts only the direct number of incoming links to a node, treating all sources equally. PageRank weights each incoming link by the score of the linking node, so an endorsement from a highly ranked node contributes more than one from a low-ranked node. This recursive definition captures global graph structure rather than just local connectivity.
Can PageRank be applied to undirected graphs?
It can be applied after a conversion, but the result has to be read with care. An undirected graph must be represented as a directed one by replacing each undirected edge with two directed edges. The resulting scores then tend to follow node degree closely, so they add little beyond a degree-based view. For undirected networks, measures designed for symmetric ties, such as eigenvector centrality or betweenness centrality, are often more informative.
Related methods
Sources
Page, L., Brin, S., Motwani, R., & Winograd, T. (1999). The PageRank citation ranking: Bringing order to the web. Stanford InfoLab Technical Report.
Open publication reference