haar_
lib
0.1.0
Module matrix_
tree
Sections
Problems
Module Items
Functions
In haar_
lib::
graph
haar_lib
::
graph
Module
matrix_tree
Copy item path
Source
Expand description
行列木定理を用いた数え上げ
§
Problems
https://judge.yosupo.jp/problem/counting_spanning_tree_undirected
https://judge.yosupo.jp/problem/counting_spanning_tree_directed
Functions
§
count_
directed_
spanning_
tree
有向グラフにおいて、頂点
root
を終点根とするような、有向全域木の個数を数える。
count_
undirected_
spanning_
tree
無向グラフにおいて、無向全域木の個数を数える。