Boost logo

Boost Users :

Subject: Re: [Boost-users] [BGL] visitors.hpp:138: error: no type named 'event_filter' in 'class dijkstra_custom_visitor'
From: Jeremiah Willcock (jewillco_at_[hidden])
Date: 2013-11-21 14:20:11


On Thu, 21 Nov 2013, The Maschine wrote:

> Thanks a lot for that.Problem solved, in terms of the function call.
>
> What remains is that my custom visitor is not behaving as I thought** it would!
> What I wanted to implement (which partially is based on an older thread that you replied) is cut-off radius around the
> source. 
> The problem with my version of visitor is that it dies when it 'examines' the first vertex outside the radius, but this
> doesnt imply that everything within radium is correctly found (correct distances etc).
>
> Any tips about this?

That's odd. Are you hooking anything to set the distances, or using the
Dijkstra's algorithm default distance map to do that? You might want to
print out the distances you see in examine_vertex (without stopping on any
of them); they should be in non-decreasing order.

-- Jeremiah Willcock


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