You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
astar_search: visitor edge_relaxed method called inconsistently before or after cost map is set #233
astar_bfs_visitor calls m_vis.edge_relaxedbefore setting the new cost map value in tree_edge and black_target (and in astar_search_no_init_tree's main loop from the looks of it), but afterwards in gray_target. This is very confusing if you want to look up the new cost value in your visitor method.
the predecessor map and the distance map are already updated;
the color map is not updated yet;
the queue and the cost map are inconsistently updated.
The queue should probably be updated after edge_relaxed, to be consistent with “outer” breadth_first_visit.
The cost map should almost certainly be updated before edge_relaxed.
Hi @qbit86 ! Just trying to assess if you are still around for opening a PR? I can also fix it myself.
Anyway, thanks a lot for reporting and exploring this ! ❤️
Activity
qbit86 commentedon Jun 1, 2021
Let me attach the code for clarity.
tree_edge
gray_target
black_target
At the moment of
edge_relaxedevent:The queue should probably be updated after
edge_relaxed, to be consistent with “outer” breadth_first_visit.The cost map should almost certainly be updated before
edge_relaxed.Resolves boostorg#233 by moving call to `edge_relaxed` after updating…
jeremy-murphy commentedon May 7, 2023
Could one of you make a PR to fix it? @qbit86 I think you already have the code ready? :)
Becheler commentedon Jun 4, 2026
Hi @qbit86 ! Just trying to assess if you are still around for opening a PR? I can also fix it myself.
Anyway, thanks a lot for reporting and exploring this ! ❤️
qbit86 commentedon Jun 4, 2026
Hi @Becheler, It's been a while and I've lost track of this one, so if you're happy to fix it yourself, please go ahead — much appreciated!