val bothHave = badVerticeIdRDD.filter(vertex.edges.contains(_)).
aggregate(scala.collection.mutable.Set[String]())({case (accSet, rddElem) => accSet += rddElem}, _ ++ _)
val newEdges = vertex.edges.filterNot(bothHave.contains(_))
--
You received this message because you are subscribed to a topic in the Google Groups "Spark Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/spark-users/KC1UJEmUeg8/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to spark-users...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.