networkx.eccentricity
networkx.radius
Return the diameter of the graph G.
The diameter is the maximum of all pairs shortest path.