“Bidirectional Dijkstra” by NetworkX
I just read the NetworkX implementation of Dijkstra's algorithm for shortest paths using bidirectional search (at this ). What is the termination point of this method? I'm going to base this on networkx's implementation. Bidirectional Dijkstra stops when it encounters the same node in both directions - but the path it returns at that point might not be through that node. It's doing additional calculations to track the best candidate for the shortest path. I'm going to base my explanation on your comment (on this answer ) Consider this simple graph (with nodes A,B,C,D,E). The edges of this