Template Function ADS::treeDiameter(const G&)

Function Documentation

template<Graph G>
int ADS::treeDiameter(const G &g)

treeDiameter(): the edges of a longest path of the free tree

Pre:

the graph is a free tree