Module center_nodes_of_tree

Source
Expand description

find a pair of center nodes of the given unweited tree graph. if tree diameter is even or number of nodes in the path is odd, two center nodes are same.

Functionsยง

center_of_nodes