making mean-path-length use single-source shortest path calls rather than shortest-path calls for each pair individually