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

    https://github.com/apache/spark/pull/11268#discussion_r53549798
  
    --- Diff: 
graphx/src/main/scala/org/apache/spark/graphx/lib/ConnectedComponents.scala ---
    @@ -29,13 +29,14 @@ object ConnectedComponents {
        *
        * @tparam VD the vertex attribute type (discarded in the computation)
        * @tparam ED the edge attribute type (preserved in the computation)
    -   *
        * @param graph the graph for which to compute the connected components
    -   *
    +   * @param maxIterations the maximum number of iterations to run for
        * @return a graph with vertex attributes containing the smallest vertex 
in each
        *         connected component
        */
    -  def run[VD: ClassTag, ED: ClassTag](graph: Graph[VD, ED]): 
Graph[VertexId, ED] = {
    +  def run[VD: ClassTag, ED: ClassTag](graph: Graph[VD, ED],
    +                                      maxIterations: Int = Int.MaxValue): 
Graph[VertexId, ED] = {
    --- End diff --
    
    ok, another run api without maxIterations options is added


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

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

Reply via email to