Shortest path algorithm analysis simulation