0

I have a graph in Spark using Graphx like:

val graph = Graph(users, rels)
println("number of vertices is " + graph.numVertices + " and number of edges is " + graph.numEdges)

and the result is:

number of vertices is 253 and number of edges is 228

I then .cache() the network and run:

val degrees = graph.degrees
// debug
println("done with degrees, I have " + degrees.count() + " degree values")

I end up having:

done with degrees, I have 112 degree values

So my question is: is there a reason why I don't have a degree result for every node in the graph?

user299791
  • 2,021
  • 3
  • 31
  • 57

0 Answers0