haar_
lib
0.1.0
Module utils
Module Items
Functions
In haar_
lib::
tree
haar_lib
::
tree
Module
utils
Copy item path
Source
Expand description
木上の便利関数
Functions
§
tree_
diameter
木の任意の2頂点の距離の最大値を求める。
tree_
distance
rootを根としたときの根から各頂点への距離を列挙する。
tree_
height
木の各頂点について、そこからの距離の最大値を列挙する。
tree_
path
木上の2頂点を結ぶパス上の頂点列を求める。