Why there is a difference between diameter of a graph and tree?
Diameter of a tree as i have read is the maximum path between two vertices(number of edges between two vertices)
But for tree it says number of nodes on the longest path.
But tree is a graph so why cant i find the diameter of tree in similar way?