Github user zsxwing commented on a diff in the pull request:

    https://github.com/apache/spark/pull/4774#discussion_r26362827
  
    --- Diff: graphx/src/main/scala/org/apache/spark/graphx/lib/PageRank.scala 
---
    @@ -74,10 +76,35 @@ object PageRank extends Logging {
        *
        * @return the graph containing with each vertex containing the PageRank 
and each edge
        *         containing the normalized weight.
    +   */
    +
    +  def run[VD: ClassTag, ED: ClassTag](graph: Graph[VD, ED], numIter: Int,
    +    resetProb: Double = 0.15): Graph[Double, Double] =
    +  {
    +    runWithOptions(graph, numIter, resetProb)
    +  }
    +
    +  /**
    +   * Run PageRank for a fixed number of iterations returning a graph
    +   * with vertex attributes containing the PageRank and edge
    +   * attributes the normalized edge weight.
    +   *
    +   * @tparam VD the original vertex attribute (not used)
    +   * @tparam ED the original edge attribute (not used)
    +   *
    +   * @param graph the graph on which to compute PageRank
    +   * @param numIter the number of iterations of PageRank to run
    +   * @param resetProb the random reset probability (alpha)
    +   * @param srcId the source vertex for a Personalized Page Rank (optional)
    +   *
    +   * @return the graph containing with each vertex containing the PageRank 
and each edge
    +   *         containing the normalized weight.
        *
        */
    -  def run[VD: ClassTag, ED: ClassTag](
    -      graph: Graph[VD, ED], numIter: Int, resetProb: Double = 0.15): 
Graph[Double, Double] =
    +
    --- End diff --
    
    The extra space line is redundant. Could you remove all extra spaces 
between comments and methods in this file?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to