NetworkX

Previous topic

networkx.shortest_path_length

Next topic

networkx.single_source_shortest_path

Quick search

networkx.bidirectional_shortest_path

bidirectional_shortest_path(G, source, target)

Return list of nodes in a shortest path between source and target.

Return False if no path exists.

Also known as shortest_path.