Template Function ADS::diameter

Function Documentation

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

diameter(): the largest distance in edges between two nodes

Pre:

the graph has a node, and every node reaches all the others