Hi Андрей,
2012/8/28 Андрей Парамонов <
cmr....@gmail.com>:
I think that we should support finding shortest paths with
restrictions. Another use case for this (besides yan's simple paths)
is a fast approximation for local node connectivity [1]. I implemented
partially the algorithm proposed in [1] at [2], but it only supports
excluding nodes, and it is based on passing to
_bidirectional_shortest_path a container with nodes to exclude that is
checked for each node traversed during the BFS. I think your
implementation is better; in a first sight, I think I prefer this one
better than a single filer_edges (as you propose in the other mail).
Could you open a pull request at github? We could continue there the
discussion about how to implement this.
Thank you very much.
Salut!
[1] A Fast Algorithm for Node-Independent Paths
http://eclectic.ss.uci.edu/~drwhite/working.pdf
[2]
https://bitbucket.org/jtorrents/networkx_sc/src/b145cc385191/networkx/algorithms/connectivity/approximation/connectivity.py