Try to compute the diameter of the tree T by a pruning procedure, starting at the leaves (external nodes).