NetLogo 7.0.0-beta2:

nw:mean-path-length

nw:mean-path-length

Reports the average shortest-path length between all distinct pairs of nodes in the current context.

Reports false unless paths exist between all pairs.

Example:

Will ouput:

Take me to the full Networks Extension Dictionary