A shortest path from to is any path from to with weight .