`meanPathLength()`- Returns the (weighted) mean shortest path length of the network. The “length” of an edge is considered to be the inverse of its weight. Unweighted edges therefore are considered to have a length of 1. This routine only works, if the whole network is connected. Self connections are not taken into account.

If is the number of nodes in the network, is the inverse of the weight of the edge connecting and (and , if this edge does not exist), is the set of all paths of binary length from to , the mean shortest path length is defined as:

```
import conedy as co
N = co.network()
N.cycle(99, 1, co.node(), co.weightedEdge(0.25))
print "Should be 100: %f" % N.meanPathLength()
```

```
network N;
N.cycle(99, 1, roessler(), weightedEdge(0.25));
print "Should be 100: " + N.meanPathLength() + newline;
```