Skip to content

Commit ae980eb

Browse files
sasakitoaankurdave
authored andcommitted
[SPARK-6736][GraphX][Doc]Example of Graph#aggregateMessages has error
Example of Graph#aggregateMessages has error. Since aggregateMessages is a method of Graph, It should be written "rawGraph.aggregateMessages" Author: Sasaki Toru <[email protected]> Closes #5388 from sasakitoa/aggregateMessagesExample and squashes the following commits: b1d631b [Sasaki Toru] Example of Graph#aggregateMessages has error
1 parent 6f0d55d commit ae980eb

File tree

1 file changed

+1
-1
lines changed
  • graphx/src/main/scala/org/apache/spark/graphx

1 file changed

+1
-1
lines changed

graphx/src/main/scala/org/apache/spark/graphx/Graph.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ abstract class Graph[VD: ClassTag, ED: ClassTag] protected () extends Serializab
409409
* {{{
410410
* val rawGraph: Graph[_, _] = Graph.textFile("twittergraph")
411411
* val inDeg: RDD[(VertexId, Int)] =
412-
* aggregateMessages[Int](ctx => ctx.sendToDst(1), _ + _)
412+
* rawGraph.aggregateMessages[Int](ctx => ctx.sendToDst(1), _ + _)
413413
* }}}
414414
*
415415
* @note By expressing computation at the edge level we achieve

0 commit comments

Comments
 (0)