graph-benchmarks icon indicating copy to clipboard operation
graph-benchmarks copied to clipboard

NetworKit shortest path benchmark

Open angriman opened this issue 5 years ago • 1 comments

Hi, I've noticed that the NetworKit shortest-path benchmark is executed with

distance.BFS(g, node_index).run()

However, with this API NetworKit will also store all shortest paths from node_index to all the other nodes, which implies a significant memory and time overhead. This behavior is a bit counterintuitive, and should be better documented, one does not expect BFS to store by default all shortest paths. Since the other tools only compute the shortest distances, for a fair comparison you should run this:

distance.BFS(g, node_index, storePaths=False).run()

angriman avatar Feb 15 '20 18:02 angriman

Hi, thanks for pointing this out and apologies that I did not get back earlier. Will use your suggested version in the upcoming re-run.

timlrx avatar Apr 16 '20 16:04 timlrx