shortestPath first implementation running
fix startpoint/endpoint, unidirectional