|
Boost Users : |
Subject: Re: [Boost-users] Modifying Dijkstra's Shortest Paths algorithm in Boost::Graph to not relax certain edges
From: Artyom Arabadji (sneg.vx_at_[hidden])
Date: 2009-04-21 19:31:35
Hi Andrew,
Thanks for your reply. I am still learning the library so I don't know
the source very well. How would one provide new functions to DSP? Is
there some sort of internal mechanism to allow for this?
Arty
Andrew Sutton wrote:
> Is there any way I can modify the values inside the weight_map in
> between DSP stages to invalidate certain paths which will result in
> them being rejected for relaxation? Or perhaps there is an easier
> and tidier way of achieving the same result?
>
>
> You probably don't want to modify the edge weights - that might have
> some weird side effects. You might want to look at providing new
> distance_compare and distance_combine functions for the Dijkstra algorithm.
>
> Andrew Sutton
> andrew.n.sutton_at_[hidden] <mailto:andrew.n.sutton_at_[hidden]>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
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