Wiener index¶

Functions related to the Wiener index of a graph.

wiener_index(G[, weight])

Returns the Wiener index of the given graph.