Add distances for edges. Show considered paths.