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)]++; }
必要に応じて、適切な次数関数 (入次数、出次数) に置き換えます。