Popular algorithm and passings for single source shortest path