PageRank calculator
Rank vertices by a damped random walk with uniform teleportation. Your inputs stay on your device.
Set up your task
Starting local processing
Ready. Processing stays in this browser.
2 Your result
Your result updates in this browser. Check your input if the result looks unexpected.
How to use PageRank calculator
Rank vertices by a damped random walk with uniform teleportation. The pre-filled problem gives you a worked starting point. Compare the response with your own working before trying the self-check below.
- Check the example inputs: Vertices (space-separated), Edges (from and to, one per line), Damping factor, Maximum iterations.
- Change the inputs for your problem. Results update as you type, so finish entering the values before copying an answer.
- Use the working to check an intermediate value or assumption. Then change the example as suggested in the self-check and compare the result.
Supported inputs and limits
Use up to 20 named vertices and 80 directed links. Repeated links to the same target count once. Damping ranges from 0 to 0.99.
How it works
PageRank gives every directed vertex a share of a wandering visitor’s attention. The visitor sometimes follows one of the current page’s outgoing links and sometimes teleports to a uniformly chosen vertex. A link from a highly ranked page can carry more weight than a link from a rarely visited page.
A vertex with no outgoing links would otherwise lose probability mass. The calculator redistributes this dangling mass uniformly along with the teleportation contribution. It reports the total absolute change in the latest iteration so students can see whether the chosen iteration limit allowed the values to settle.
Example
Run the pre-filled example. Its first result is “PageRank after 1 iteration”.
- Vertices (space-separated)
- A B C
- Edges (from and to, one per line)
- A B
B C
C A - Damping factor
- 0.85
- Maximum iterations
- 100
PageRank after 1 iteration A: 0.333333333 B: 0.333333333 C: 0.333333333 L1 change in the last step: 0 Change tolerance reached.
Questions about PageRank calculator
Will entering the same edge twice give it extra weight?
Repeated directed edges to the same target are collapsed. The model gives equal probability to each distinct outgoing target.
Is an incoming link always worth the same amount?
A vertex divides its share across its outgoing targets. The weight depends on both its current score and how many targets it links to.
Set the damping factor to zero.
Every vertex receives equal probability, whatever the edges. With zero damping the walk always teleports.
Related tools
Last updated