A better definition of diameter is simply "the length of the longest path". The root only tree has diameter 0, and the path on two vertices ...
確定! 回上一頁