Re: find all directed paths between a source and destination



On Apr 11, 12:30 pm, "Paul E. Black" <p.bl...@xxxxxxx> wrote:
On Wednesday 09 April 2008 17:00, Ginu wrote:

Hello all. I have a graph (that is not necessarily directed) of a
number of nodes. I'm trying to enumerate through all directed paths
between source and destination (to avoid routing loops). There
shouldn't be an infinite number of solutions to this problem because
nodes cannot be traversed more than once in the solution. ... [PEB]

Your problem may be ill-formed, in that you can get different answers
depending on how you enumerate the paths.

The simple example I can think of has 4 nodes.
  B
 /|\
A | C
 \|/
  D
In text, A and C are source and destination.  The edges are
   (A, B)
   (B, C)
   (A, D)
   (D, C)
   (B, D)

If you choose A-B-D-C, you're done: just 1 path.  But you can choose
A-B-C, then A-D-C, which gives 2 paths.

What answer do you want? 2 (maximum)?  Or is either of 1 or 2
acceptable?  Or are there other things that make the problem clearer?

-paul-

Thanks for the responses. Essentially I would like to determine all
directed paths between A and C, so all three that you suggested. I
then have an optimization function to select one above the others.
.



Relevant Pages

  • Re: find all directed paths between a source and destination
    ... I'm trying to enumerate through all directed paths ... between source and destination (to avoid routing loops). ... A and C are source and destination. ...
    (comp.theory)
  • Re: latex 2 doc/rtf (enumerate)
    ... using tex4ht - but I have not been able to get it to output correctly ... enumerated lists that make use of the enumerate package. ...   \item second ...
    (comp.text.tex)
  • Re: semantics of exif tags
    ... destination when taking photos when not the subject? ...     TIFF Tag GPSImgDirection ... That's a TIFF tag, not an Exif tag. ...
    (sci.image.processing)
  • Re: Holiday Game
    ...   eor.l r0,r0 ... better to not do assembly programming. ... Subtracts the source from the destination and stores the result ... Tell that to the folks using RosAsm. ...
    (alt.lang.asm)
  • Re: More buyers remorse for iPhone owners...
    ... Phone 600 makes it easy to find your destination with turn-by-turn ... The GPS Phone 600 is an unlocked world phone that is ... card into the GPS Phone 600 to begin enjoying its many features. ... Operating System   Microsoft® Windows Mobile™ 5.0 ...
    (comp.sys.mac.advocacy)