TreeHeight returns the height of the tree T with the vertex r as root. In other words it returns the maximum distance of the vertices of T from r.
T≔Graph 1: an undirected unweighted graph with 5 vertices and 4 edge(s)
Download Help Document
What kind of issue would you like to report? (Optional)