Tweaks for graph distance. BorderDistance is next.