2011/5/3 David Drum <david....@gmail.com>:
> Hello everyone,
>
> I am a new user of NetworkX, so please forgive any naive questions. I
> would like to identify all non-cyclical paths between two nodes in a
> graph. I assume this would be called path enumeration, but I am not
> finding anything in NetworkX that would accomplish this. Is there a
> function to do this? Is there an algorithm to do this for two nodes,
> or all nodes? Thanks in advance for any replies.
A few weeks ago an implementation to find all distinct and
non-cyclical paths between two nodes was posted to the mailing list
[1]. But you have to take into account that, in most networks, the
number of such paths is astronomical, thus computing *all* of them may
be difficult and not very useful. An alternative approach could be
restrict the search to node independent paths (see my reply in [1] for
details if you are interested).
Salut!
[1] http://groups.google.com/group/networkx-discuss/browse_thread/thread/36d6f63f3c9f6cdf