rewrote network.distances into network.smallestGap using quadtree