Re: Finding longest path between two vertices
- From: Robby Goetschalckx <robby@xxxxxxxxxxxxxxxxx>
- Date: Fri, 15 Jun 2007 14:49:31 +0200
Tim Frink wrote:
On Fri, 15 Jun 2007 10:29:13 +0200, Robby Goetschalckx wrote:
After transforming to 1/w, the first path has a new weight of 0.5, and the second a weight of 0.5 + 0.5, so according to your assumption the first path in the original graph should be longer ...
Do you see any problems with my suggestion of negating the edge weights
and than search the shortest path?
Tim
Not that I know of, at least if the algorithm is able to handle negative weights. You always have to beware of loops, but in the case of loops the problem is ill-defined.
robby
.
- Follow-Ups:
- Re: Finding longest path between two vertices
- From: tchow
- Re: Finding longest path between two vertices
- References:
- Finding longest path between two vertices
- From: Tim Frink
- Re: Finding longest path between two vertices
- From: estrabd
- Re: Finding longest path between two vertices
- From: Tobias Columbus
- Re: Finding longest path between two vertices
- From: Robby Goetschalckx
- Re: Finding longest path between two vertices
- From: Tim Frink
- Finding longest path between two vertices
- Prev by Date: Re: Finding longest path between two vertices
- Next by Date: Re: Finding longest path between two vertices
- Previous by thread: Re: Finding longest path between two vertices
- Next by thread: Re: Finding longest path between two vertices
- Index(es):
Relevant Pages
|