Package org.apache.spark.graphx.lib
Class ConnectedComponents
Object
org.apache.spark.graphx.lib.ConnectedComponents
Connected components algorithm.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionrun(Graph<VD, ED> graph, int maxIterations, scala.reflect.ClassTag<VD> evidence$1, scala.reflect.ClassTag<ED> evidence$2) 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.run(Graph<VD, ED> graph, scala.reflect.ClassTag<VD> evidence$3, scala.reflect.ClassTag<ED> evidence$4) 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.
- 
Constructor Details- 
ConnectedComponentspublic ConnectedComponents()
 
- 
- 
Method Details- 
runpublic static <VD,ED> Graph<Object,ED> run(Graph<VD, ED> graph, int maxIterations, scala.reflect.ClassTag<VD> evidence$1, scala.reflect.ClassTag<ED> evidence$2) 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.- Parameters:
- graph- the graph for which to compute the connected components
- maxIterations- the maximum number of iterations to run for
- evidence$1- (undocumented)
- evidence$2- (undocumented)
- Returns:
- a graph with vertex attributes containing the smallest vertex in each connected component
 
- 
runpublic static <VD,ED> Graph<Object,ED> run(Graph<VD, ED> graph, scala.reflect.ClassTag<VD> evidence$3, scala.reflect.ClassTag<ED> evidence$4) 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.- Parameters:
- graph- the graph for which to compute the connected components
- evidence$3- (undocumented)
- evidence$4- (undocumented)
- Returns:
- a graph with vertex attributes containing the smallest vertex in each connected component
 
 
-