-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to print sortedVBC? #4
Comments
Hi, |
Hi, val sc = new SparkContext(new SparkConf().setAppName("Spark Count")) val vertexArray = Array( val vertexRDD: RDD[(Long, (String, Int))] = sc.parallelize(vertexArray) val graph: Graph[(String, Int), Int] = Graph(vertexRDD, edgeRDD) val verticesBetweenness = kBCGraph.vertices.collect() val sortedVBC = verticesBetweenness.sortWith((x,y) => x._1 < y._1) println(s"$sortedVBC(0)._1") |
Did you manage to get it to work? |
Hi, I am trying to print the sortedVBC. I do not get errors by building the .jar file, but anything is shown when I run it. Please, this is my source code to do so:
val graph = Graph(vertices, edges, defaultVertex)
Best and thanks in advance
The text was updated successfully, but these errors were encountered: