Go to the source code of this file.
Functions | |
int | gk_rw_PageRank (gk_csr_t *mat, float lamda, float eps, int max_niter, float *pr) |
$Id: rw.c 11078 2011-11-12 00:20:44Z karypis $
Definition in file rw.c.
Computes the (personalized) page-rank of the vertices in a graph.
mat | is the matrix storing the graph. | |
lamda | is the restart probability. | |
eps | is the error tolerance for convergance. | |
max_niter | is the maximum number of allowed iterations. | |
pr | on entry stores the restart distribution of the vertices. This allows for the computation of personalized page-rank scores by appropriately setting that parameter. On return, pr stores the computed page ranks. |
Definition at line 29 of file rw.c.
References gk_free().
Referenced by main().