aryagraph.algorithms.structure.diameter#

aryagraph.algorithms.structure.diameter(g: Any, weight: str | Callable[[Hashable, Hashable, dict], float] | None = None) → float[source]#

Largest eccentricity (NotConnected if the graph is not (strongly) connected).