- Introduced by
- Xing, W. & Ghorbani, A.
- Year
- 2004
- Type
- Centrality measure / ranking algorithm
- Family
- Network science
What does it do?
Weighted PageRank extends the PageRank algorithm to networks whose edges differ in strength or frequency.
Instead of sharing a node's rank equally among its out-neighbours, it passes rank along each edge in proportion to normalised in-weight and out-weight fractions, so stronger ties carry more influence. It is most useful when edge weights are a credible measure of how much one node's standing should count for another.
The intuition behind the method
Classic PageRank treats every link as an equal vote, so a faint tie and a strong tie pass on the same share of rank. Weighted PageRank scales each vote by the relative weight of the edge, so a node gains more from heavy incoming ties than from light ones. Because rank is passed on recursively, a node that receives strong ties from high-scoring nodes ranks highly, while a node with many weak ties does not necessarily do so. The choice of weights therefore determines what the ranking means: in a citation network they might be co-citation counts, and in a transaction network, transaction volumes.
History
PageRank was introduced by Brin and Page in 1998 as the basis of Google Search, treating every hyperlink as an equal vote. Xing and Ghorbani (2004) proposed Weighted PageRank as an extension for web structure mining; their abstract describes rank distribution based on the popularity of pages through their inlinks and outlinks, and reports simulation results in which it returned more relevant pages than conventional PageRank. Its use since then has extended to citation analysis, bioinformatics, social network analysis and recommendation, wherever link strength is taken as a proxy for influence.
When to use it
Choose Weighted PageRank when your network has meaningful, non-negative edge weights and you need a global importance ranking in which influence propagates through the network. It suits networks where tie strength is a credible signal, such as citation or co-authorship networks with co-citation counts, web graphs with traffic volumes, interaction networks with expression levels, or transaction networks with volumes. Prefer it to binary PageRank when ignoring the weights would distort how influence flows. Avoid it when the weights are arbitrary, unreliable or nearly binary, because the ranking then inherits the weighting error, and avoid it when you need only direct, local influence, for which weighted degree centrality is the simpler choice. The formula is built around directed flow, so for undirected networks you must first decide how each tie is represented in both directions, and that choice should be justified against your research question rather than assumed.
Limitations and considerations
- The ranking is only as good as the edge weights; noisy, arbitrarily scaled or biased weights pass directly into the scores.
- The damping factor d is a free parameter; 0.85 is the PageRank convention for web graphs and need not suit other networks.
- Results depend on the weight normalisation: the in-weight and out-weight fractions are one particular choice, and alternative normalisations can produce different rankings.
- The method uses a single weight per edge and so cannot separate different kinds of relationship; a network with several tie types must first combine them into one weight.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Edge strength enters the propagation directly: a heavy tie transfers more of a node's rank than a light one, which binary PageRank cannot represent.
- Importance is recursive, so a node's score reflects the scores of its weighted in-neighbours and not only its direct connections.
- The base term (1 minus d) keeps PageRank's teleportation component, so the update is not driven by link structure alone.
- A high score arises from heavy weighted ties from nodes that themselves score highly, which makes the scores straightforward to trace back to specific edges.
- In the 2004 simulation study cited on this page, the weighted algorithm returned more relevant pages for a query than conventional PageRank did.
Applications
- Identifying influential papers or authors in weighted citation and co-authorship networks.
- Ranking web pages or documents when hyperlink traffic volume or click-through rates are available.
- Detecting key proteins or genes in weighted biological interaction networks.
- Prioritising nodes in financial transaction networks by transaction volume flow.
- Ranking users or content in weighted social media interaction graphs.
- Building recommendation systems where item co-occurrence frequencies serve as edge weights.
How it works
How it works
Represent the network as a graph in which each edge carries a non-negative numerical weight reflecting tie strength, such as interaction frequency, transaction volume, co-authorship count or a similarity score. Negative weights must be transformed before analysis, because the normalising fractions in the next step are meant to be read as shares of a total.
For each directed edge from node v to node u, compute an in-weight factor, the edge weight divided by the total weight of all edges entering u, and an out-weight factor, the edge weight divided by the total weight of all edges leaving v. This edge-weight form is a generalisation. Xing and Ghorbani's original algorithm defines the factors from the number of inlinks and outlinks of the target page u, normalised over the pages that the referring page v links to. Together, the two fractions set how much of v's rank reaches u through the edge.
Formula
W_{in}(v,u) = \frac{w(v,u)}{\sum_{k \in In(u)} w(k,u)}, \quad W_{out}(v,u) = \frac{w(v,u)}{\sum_{k \in Out(v)} w(v,k)}Update each node's score as the base term (1 minus the damping factor d) plus d times the sum, over all in-neighbours v, of WPR(v) multiplied by the in-weight and out-weight factors of the edge from v to u. The damping factor d is a user-chosen parameter; 0.85 is the value conventionally used for PageRank on web graphs.
Formula
WPR(u) = (1-d) + d \sum_{v \in In(u)} WPR(v) \cdot W_{in}(v,u) \cdot W_{out}(v,u)Repeat the update until the change in every node's score falls below a tolerance chosen for the analysis. Whether and how quickly the iteration settles depends on the graph structure and on d, so monitor the change between successive iterations rather than assuming it shrinks. The update as written does not define what happens to nodes with no outgoing edges. A common option is to redistribute a dangling node's rank uniformly over all nodes; another is to remove such nodes or add a self-link. This choice changes the scores, so report which one you used.
Once the scores have settled, sort all nodes by their Weighted PageRank score in descending order. Compare scores by rank order within a single network, where they reflect each node's position in the weighted flow of influence through the graph.
Common pitfalls
- Using raw edge weights on very different scales without checking them; a few very large values can dominate the normalised fractions.
- Leaving dangling nodes unhandled; the update as written does not define rank transfer from nodes with no outgoing edges, so this must be addressed explicitly and reported.
- Keeping d at 0.85 without testing sensitivity; the value is a convention, and rankings may shift across a reasonable range of d.
- Interpreting scores as probabilities; total score mass is not guaranteed to equal one or the number of nodes under this update, so compare scores only by rank order within one network and check the normalisation of your implementation.
- Comparing scores across networks of different sizes or weight scales without normalisation; scores from separate graphs are not directly comparable.
Frequently asked questions
How is Weighted PageRank different from standard PageRank?
Standard PageRank distributes a node's rank equally to all its out-neighbours regardless of edge strength. Weighted PageRank scales this distribution by the relative in-weight and out-weight of each edge, so stronger connections carry proportionally more rank.
What damping factor should I use?
The conventional value is 0.85, the damping factor usually used for PageRank on web graphs. For other networks this method does not settle a value, so run a sensitivity analysis over a range of damping values and check whether the top-ranked nodes change.
Can Weighted PageRank be applied to undirected networks?
Only as a modelling choice: each undirected tie can be represented as a pair of directed edges carrying the same weight. This makes the in-weight and out-weight fractions well defined, but rank then flows in both directions along every tie, which the directed-flow interpretation does not assume. Check that this matches your question before using it.
How do I handle zero-weight edges?
Edges with zero weight contribute nothing to rank propagation, so they can be removed before analysis. If zero weights are structurally meaningful (absence versus missing data), document the distinction clearly before removing them.
Is Weighted PageRank better than weighted degree centrality?
It depends on the research question. Weighted degree centrality captures only direct connections, while Weighted PageRank captures global prestige propagated across the whole network. Use weighted degree for local influence and Weighted PageRank for network-wide importance.
Related methods
Sources
Xing, W., & Ghorbani, A. (2004). Weighted PageRank algorithm. Proceedings of the Second Annual Conference on Communication Networks and Services Research (CNSR '04), pp. 305–314. IEEE.
Open DOI referencePageRank. Wikipedia.
Open publication reference