Expand description

not only tree, but accept all the functional graph like structure with parent and depth for each node. for example, unicyclic tree (each node in the cycle is root) is ok.

Structs