-1

我试图查看版本 2 的文档,但我没有找到任何东西。

4

1 回答 1

0

不,没有,但是循环遍历图中的顶点并建立度数分布的表示非常简单,例如:

int[] degreeCounts = new int[graph.getVertexCount()];
for (V v : graph.getVertices()) {
  degreeCounts[graph.getDegree(v)]++;
}

根据需要替换适当的度函数(入度、出度)。

于 2015-05-10T17:23:03.203 回答