|
SOLUTIONS
|
COMBINATORICA パッケージ シンボル
MaximumSpanningTree
MaximumSpanningTree[g]
クラスカル(Kruskal)のアルゴリズムを使って,グラフ g の最大全域木を見付ける.
詳細詳細
を使うためには,まず Combinatorica パッケージをロードしなくてはならない.それにはNeeds["Combinatorica`"]を実行する必要がある.
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »
