Added methods for the average shortest path