Module matrix_tree

Source
Expand description

Functions§

count_directed_spanning_tree
有向グラフにおいて、頂点rootを終点根とするような、有向全域木の個数を数える。
count_undirected_spanning_tree
無向グラフにおいて、無向全域木の個数を数える。