after running the below code val coonn=graph.connectedComponents.vertices.map(_.swap).groupByKey.map(_._2).collect() coonn.foreach(println)
I get array of compact buffers CompactBuffer(13) CompactBuffer(14) CompactBuffer(4, 11, 1, 6, 3, 7, 9, 8, 10, 5, 2) CompactBuffer(15, 12) Now i want to get that compactbuffers which has a values say 1 and 15 .How can i get that ? appreciate the help -- View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/Graphx-CompactBuffer-help-tp24481.html Sent from the Apache Spark User List mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
