By using trianglecount from GraphX, I retrieve the following array:
Array[(org.apache.spark.graphx.VertexId, Int)] = Array((1,1), (3,1), (2,1))
I'm trying to find a way to sum the second value of each element in the array. Thus the 1's in this example.
I haven't been able to find a method how to do this.