Rewritten unweighted_shortest_paths.

To match other shortest-path algorithms return value.