recategorized by
704 views
0 votes
0 votes
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?
recategorized by

1 Answer

0 votes
0 votes
i think diameter has same meaning in tree as well the number of on the longest path means distance between the a particular node to leaf node becoz that path will be longest one here

Related questions

1 votes
1 votes
0 answers
1
2 votes
2 votes
1 answer
2
0 votes
0 votes
2 answers
3
sripo asked Dec 25, 2018
4,808 views
In a 3-array tree if internal nodes have exactly 3 children,the number of leaf nodes will be __ ?Does it vary for binary tree?What do you mean by internal nodes? Non roo...
0 votes
0 votes
2 answers
4
yuuchan asked Jul 22, 2023
547 views
If G is a complete bipartite graph with n vertices (n >= 2) and minimum number of edges, then matching number of G is ____1n-1⌊n/2⌋⌈n/2⌉