Skip to content

Commit ab4f516

Browse files
Hangchen Yusrowen
authored andcommitted
[SPARK-6455] [docs] Correct some mistakes and typos
Correct some typos. Correct a mistake in lib/PageRank.scala. The first PageRank implementation uses standalone Graph interface, but the second uses Pregel interface. It may mislead the code viewers. Author: Hangchen Yu <yuhc@gitcafe.com> Closes #5128 from yuhc/master and squashes the following commits: 53e5432 [Hangchen Yu] Merge branch 'master' of https://github.com/yuhc/spark 67b77b5 [Hangchen Yu] [SPARK-6455] [docs] Correct some mistakes and typos 206f2dc [Hangchen Yu] Correct some mistakes and typos.
1 parent b9fe504 commit ab4f516

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ class GraphOps[VD: ClassTag, ED: ClassTag](graph: Graph[VD, ED]) extends Seriali
113113
* Collect the neighbor vertex attributes for each vertex.
114114
*
115115
* @note This function could be highly inefficient on power-law
116-
* graphs where high degree vertices may force a large ammount of
116+
* graphs where high degree vertices may force a large amount of
117117
* information to be collected to a single location.
118118
*
119119
* @param edgeDirection the direction along which to collect
@@ -187,7 +187,7 @@ class GraphOps[VD: ClassTag, ED: ClassTag](graph: Graph[VD, ED]) extends Seriali
187187

188188
/**
189189
* Join the vertices with an RDD and then apply a function from the
190-
* the vertex and RDD entry to a new vertex value. The input table
190+
* vertex and RDD entry to a new vertex value. The input table
191191
* should contain at most one entry for each vertex. If no entry is
192192
* provided the map function is skipped and the old value is used.
193193
*

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ object Pregel extends Logging {
7878
*
7979
* @param graph the input graph.
8080
*
81-
* @param initialMsg the message each vertex will receive at the on
82-
* the first iteration
81+
* @param initialMsg the message each vertex will receive at the first
82+
* iteration
8383
*
8484
* @param maxIterations the maximum number of iterations to run for
8585
*

graphx/src/main/scala/org/apache/spark/graphx/lib/PageRank.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import org.apache.spark.graphx._
2525
/**
2626
* PageRank algorithm implementation. There are two implementations of PageRank implemented.
2727
*
28-
* The first implementation uses the [[Pregel]] interface and runs PageRank for a fixed number
28+
* The first implementation uses the standalone [[Graph]] interface and runs PageRank for a fixed number
2929
* of iterations:
3030
* {{{
3131
* var PR = Array.fill(n)( 1.0 )
@@ -38,7 +38,7 @@ import org.apache.spark.graphx._
3838
* }
3939
* }}}
4040
*
41-
* The second implementation uses the standalone [[Graph]] interface and runs PageRank until
41+
* The second implementation uses the [[Pregel]] interface and runs PageRank until
4242
* convergence:
4343
*
4444
* {{{

0 commit comments

Comments
 (0)