Update Shortest path (fewest nodes) for unweighted graph