Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我试图查看版本 2 的文档,但我没有找到任何东西。
不,没有,但是循环遍历图中的顶点并建立度数分布的表示非常简单,例如:
int[] degreeCounts = new int[graph.getVertexCount()]; for (V v : graph.getVertices()) { degreeCounts[graph.getDegree(v)]++; }
根据需要替换适当的度函数(入度、出度)。