Pgrank already runs a fixed number of power iterations in all
three arms. tol is accepted for signature compatibility and
ignored: an early stop on a tolerance is exactly what makes two arms
disagree in the last digits.
Usage
Sgtpgr(A, d = 0.85, max_iter = 100, tol = NULL)
Arguments
- A
Adjacency matrix.
- d
Damping factor.
- max_iter
Power iterations.
- tol
Ignored; accepted for signature compatibility.
Details
Formula: p = (1 - d)/n + d M^T p, iterated max_iter times.
References
Page, L., Brin, S., Motwani, R. & Winograd, T. (1999).
Stanford InfoLab technical report 1999-66.
Examples
M <- matrix(c(1, 2, 3, 4, 5, 6), nrow = 2)
Sgtpgr(M)
#> $pr
#> [1] 0.1057334 0.1464527
#>
#> $estimate
#> [1] 0.1464527
#>
#> $top
#> [1] 1
#>
#> $n
#> [1] 2
#>
#> $method
#> [1] "PageRank by fixed power iteration"
#>
#> attr(,"class")
#> [1] "morie_rich_result" "list"