Returns the diameter of the graph G.
The diameter is the maximum eccentricity.
A graph
A precomputed dictionary of eccentricities.
Diameter of graph
See also
eccentricity