Boost Users :
From: Jeremy Siek (jsiek_at_[hidden])
Date: 2004-04-03 16:13:10
I recommend throwing an exception from inside a visitor and catching it
outside the call to dijkstra.
On Apr 3, 2004, at 3:36 PM, Sven de Vries wrote:
> in a given graph I want to determine whether between one (!) pair
> (u,v) of
> vertices there exists an u-v-path of length at most some given
> threshold and that path.
> I use dijkstra_shortest_paths(g,u,
> but to accelerate matters I would like to stop the computation as soon
> the key of v becomes smaller than the threshold or v turns black.
> I couldn't find a hook of the dijkstra algorithm that could be used to
> achieve this. Do I really have to change the implementation of the
> dijkstra algorithm for this, or is there a better way?
Jeremy Siek <jsiek_at_[hidden]>
Ph.D. Student, Indiana University Bloomington
Graduating in August 2004 and looking for work
C++ Booster (http://www.boost.org)
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net