unweighted shortest path is OK