apache/spark — pull request #2100 by pfontana3w2 (2014-08-22 20:39:01+00:00)
Title: Error in Page Rank Computation in PageRank.scala

I saw an error in the Page Rank computation for runUntilConverge() in PageRank.scala. It uses the oldPR instead of the resetProb. Note that the run() Method in PageRank.scala uses resetProb as my correction does here (see Lines 95–96 of PageRank.scala).

Here is the diff that I see (in case it is hidden later):
```scala
- val newPR = oldPR + (1.0 - resetProb) * msgSum
+ // Equation: resetProb * (1-resetProb)*msgSum
+ val newPR = resetProb + (1.0 - resetProb) * msgSum
```

If I am incorrect, feel free to make the proper correction.

Best Wishes