我使用Graphx在Spark中有一个图表,如:
val graph = Graph(users, rels)
println("number of vertices is " + graph.numVertices + " and number of edges is " + graph.numEdges)
结果是:
顶点数是253,边数是228
然后我.cache()网络并运行:
val degrees = graph.degrees
// debug
println("done with degrees, I have " + degrees.count() + " degree values")
我最终得到了:
用度数完成,我有112度值
所以我的问题是:为什么我没有为图表中的每个节点提供学位结果?