Repository: spark
Updated Branches:
  refs/heads/master b46e58b74 -> 6d230dccf


Update PageRank.scala

## What changes were proposed in this pull request?

Hi, acording to code below,
"if (id == src) (0.0, Double.NegativeInfinity) else (0.0, 0.0)"
I think the comment can be wrong

## How was this patch tested?
Please review http://spark.apache.org/contributing.html before opening a pull 
request.

Author: FanDonglai <ddna_1...@163.com>

Closes #20220 from ddna1021/master.


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/6d230dcc
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/6d230dcc
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/6d230dcc

Branch: refs/heads/master
Commit: 6d230dccf65300651f989392159d84bfaf08f18f
Parents: b46e58b
Author: FanDonglai <ddna_1...@163.com>
Authored: Thu Jan 11 09:06:40 2018 -0600
Committer: Sean Owen <so...@cloudera.com>
Committed: Thu Jan 11 09:06:40 2018 -0600

----------------------------------------------------------------------
 graphx/src/main/scala/org/apache/spark/graphx/lib/PageRank.scala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/6d230dcc/graphx/src/main/scala/org/apache/spark/graphx/lib/PageRank.scala
----------------------------------------------------------------------
diff --git a/graphx/src/main/scala/org/apache/spark/graphx/lib/PageRank.scala 
b/graphx/src/main/scala/org/apache/spark/graphx/lib/PageRank.scala
index fd7b7f7..ebd65e8 100644
--- a/graphx/src/main/scala/org/apache/spark/graphx/lib/PageRank.scala
+++ b/graphx/src/main/scala/org/apache/spark/graphx/lib/PageRank.scala
@@ -303,7 +303,7 @@ object PageRank extends Logging {
     val src: VertexId = srcId.getOrElse(-1L)
 
     // Initialize the pagerankGraph with each edge attribute
-    // having weight 1/outDegree and each vertex with attribute 1.0.
+    // having weight 1/outDegree and each vertex with attribute 0.
     val pagerankGraph: Graph[(Double, Double), Double] = graph
       // Associate the degree with each vertex
       .outerJoinVertices(graph.outDegrees) {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org
For additional commands, e-mail: commits-h...@spark.apache.org

Reply via email to