Temporarily commented shortest path function