I'm building a graph from an RDD of tuples of source and destination nodes, like this:
Graph.fromEdgeTuples(rawEdges = edgeList, 1)
First off, I did not quite understand what the second parameter is. From the documentation,
defaultValue the vertex attributes with which to create vertices referenced by the edges
I still don't get it.
Second, I cannot find anything to compute the size of the biggest component. There is no
foreach
implemented, normap
orreduceByKey
, or anything else after invoking theconnectedComponents
method.