compute all shortest paths, very slowly.  ugh.