How to use this calculator
Rank nodes by repeatedly distributing their current weight through outgoing links and uniform teleportation.
- Enter Row-major nonnegative adjacency weights, Number of nodes, Link-following probability. Match the units shown beside each field and review the result together with the assumptions below.
- Read the worked example below to check the expected input format and result.
- Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
Damped PageRank from a weighted graph explained
How the calculation works
Uniform teleportation plus normalized outgoing-link flow
Normalize each nonempty adjacency row into outgoing probabilities. Every iteration combines link-following flow with uniform teleportation; a dangling node also distributes uniformly. Iteration stops when total absolute score change falls below 10⁻¹³, or reports a convergence limit.
Set up the calculation
a— Row-major nonnegative adjacency weights- Nonnegative directed edge weights in row-major order. For n nodes, enter exactly n² values; row i contains links leaving node i.
n— Number of nodes- Number of graph nodes; it must be a positive whole number and determines the required matrix size.
d— Link-following probability- Probability of following an outgoing edge at each step, from 0 up to but not including 1. The remaining probability is uniform teleportation.
Limits of this model
Dangling nodes distribute uniformly; teleportation is uniform, edge weights are nonnegative, and scores sum to one.
Check this example
Row-major nonnegative adjacency weights = 0, 1, 1, 1, 0, 0, 0, 1, 0; Number of nodes = 3; Link-following probability = 0.85.
- First-node PageRank: 0.38778971
- All node scores: 0.38778971, 0.39739966, 0.21481063
Reading the outputs
Each score is a share of the stationary rank distribution, so the entries sum to 1. A larger value reflects more incoming link weight from highly ranked nodes under the chosen damping model; it is not a measure of factual quality.
Frequently asked questions
What happens to a node with no outgoing links?
Its weight is redistributed uniformly.
Does a larger damping factor always improve ranking?
It changes the model; it is not automatically better.
Are node labels one based?
Displayed node numbers are one based.
How do I use the Damped PageRank from a weighted graph calculator?
Enter Row-major nonnegative adjacency weights, Number of nodes, Link-following probability. Match the units shown beside each field and review the result together with the assumptions below.
What is a worked example of Damped PageRank from a weighted graph?
Row-major nonnegative adjacency weights = 0, 1, 1, 1, 0, 0, 0, 1, 0; Number of nodes = 3; Link-following probability = 0.85. First-node PageRank: 0.38778971 All node scores: 0.38778971, 0.39739966, 0.21481063
Method reference: NetworkX PageRank method and power-iteration reference.
Read our calculation methodology.