Convert shortestPath/unweighted