Skip to content

Commit

Permalink
[SPARK-6455] [docs] Correct some mistakes and typos
Browse files Browse the repository at this point in the history
  • Loading branch information
Hangchen Yu committed Mar 22, 2015
1 parent b9fe504 commit 67b77b5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions graphx/src/main/scala/org/apache/spark/graphx/GraphOps.scala
Expand Up @@ -113,7 +113,7 @@ class GraphOps[VD: ClassTag, ED: ClassTag](graph: Graph[VD, ED]) extends Seriali
* Collect the neighbor vertex attributes for each vertex.
*
* @note This function could be highly inefficient on power-law
* graphs where high degree vertices may force a large ammount of
* graphs where high degree vertices may force a large amount of
* information to be collected to a single location.
*
* @param edgeDirection the direction along which to collect
Expand Down Expand Up @@ -187,7 +187,7 @@ class GraphOps[VD: ClassTag, ED: ClassTag](graph: Graph[VD, ED]) extends Seriali

/**
* Join the vertices with an RDD and then apply a function from the
* the vertex and RDD entry to a new vertex value. The input table
* vertex and RDD entry to a new vertex value. The input table
* should contain at most one entry for each vertex. If no entry is
* provided the map function is skipped and the old value is used.
*
Expand Down
4 changes: 2 additions & 2 deletions graphx/src/main/scala/org/apache/spark/graphx/Pregel.scala
Expand Up @@ -78,8 +78,8 @@ object Pregel extends Logging {
*
* @param graph the input graph.
*
* @param initialMsg the message each vertex will receive at the on
* the first iteration
* @param initialMsg the message each vertex will receive at the first
* iteration
*
* @param maxIterations the maximum number of iterations to run for
*
Expand Down
Expand Up @@ -25,7 +25,7 @@ import org.apache.spark.graphx._
/**
* PageRank algorithm implementation. There are two implementations of PageRank implemented.
*
* The first implementation uses the [[Pregel]] interface and runs PageRank for a fixed number
* The first implementation uses the standalone [[Graph]] interface and runs PageRank for a fixed number
* of iterations:
* {{{
* var PR = Array.fill(n)( 1.0 )
Expand All @@ -38,7 +38,7 @@ import org.apache.spark.graphx._
* }
* }}}
*
* The second implementation uses the standalone [[Graph]] interface and runs PageRank until
* The second implementation uses the [[Pregel]] interface and runs PageRank until
* convergence:
*
* {{{
Expand Down

0 comments on commit 67b77b5

Please sign in to comment.