distance to the closest junction. A junction is defined as a node where two or more ways cross, or three or more ways begin.