mean_distance_wt function

Calculate weighted shortest path lengths