NetworkX

Previous topic

networkx.eccentricity

Next topic

networkx.radius

Quick search

networkx.diameter

diameter(G, e=None)

Return the diameter of the graph G.

The diameter is the maximum of all pairs shortest path.