MeanDistance() working for all graphs.