Packages

o

org.apache.spark.graphx.lib

ConnectedComponents

object ConnectedComponents

Connected components algorithm.

Source
ConnectedComponents.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ConnectedComponents
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. def run[VD, ED](graph: Graph[VD, ED])(implicit arg0: ClassTag[VD], arg1: ClassTag[ED]): Graph[VertexId, ED]

    Compute the connected component membership of each vertex and return a graph with the vertex value containing the lowest vertex id in the connected component containing that vertex.

    Compute the connected component membership of each vertex and return a graph with the vertex value containing the lowest vertex id in the connected component containing that vertex.

    VD

    the vertex attribute type (discarded in the computation)

    ED

    the edge attribute type (preserved in the computation)

    graph

    the graph for which to compute the connected components

    returns

    a graph with vertex attributes containing the smallest vertex in each connected component

  2. def run[VD, ED](graph: Graph[VD, ED], maxIterations: Int)(implicit arg0: ClassTag[VD], arg1: ClassTag[ED]): Graph[VertexId, ED]

    Compute the connected component membership of each vertex and return a graph with the vertex value containing the lowest vertex id in the connected component containing that vertex.

    Compute the connected component membership of each vertex and return a graph with the vertex value containing the lowest vertex id in the connected component containing that vertex.

    VD

    the vertex attribute type (discarded in the computation)

    ED

    the edge attribute type (preserved in the computation)

    graph

    the graph for which to compute the connected components

    maxIterations

    the maximum number of iterations to run for

    returns

    a graph with vertex attributes containing the smallest vertex in each connected component