Skip to content

Commit 3e4ecd1

Browse files
author
Raghav Dua
committed
Update code.js
1 parent 912b486 commit 3e4ecd1

File tree

1 file changed

+3
-3
lines changed
  • algorithm/graph_search/page_rank/v2

1 file changed

+3
-3
lines changed

algorithm/graph_search/page_rank/v2/code.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
2-
PageRank Algorithm Version 1
2+
PageRank Algorithm Version 2
33
Equation:
4-
PR (X) = (1 - D) + D (Summation i->X (PR (I) / Out (i)))
4+
PR (X) = ( (1 - D)/N ) + D (Summation i->X (PR (I) / Out (i)))
55
NOTE: Algorithm uses the recommended damping factor (D). Number of iterations is small because only a small Web of 5 Pages is simulated
66
*/
77

@@ -103,4 +103,4 @@ logger._print ('Page Ranks have been converged to.')
103103
ranks.forEach (function (rank, node) {
104104
logger._print ('Rank of Node #' + node + ' = ' + rank);
105105
});
106-
logger._print ('Done');
106+
logger._print ('Done');

0 commit comments

Comments
 (0)