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
The cost_recorder event visitor makes a copy of the edge weight property map every time it is utilized in order to get the cost of an edge. It seems like there should be a more efficient way of getting the edge weight that avoids this unnecessary amount of copying
auto edge_weight_map = boost::get(boost::edge_weight, g);
Also, the class should probably be renamed to distance_recorder since it is actually recording the distance from the start vertex to each visited vertex
The text was updated successfully, but these errors were encountered:
marip8
changed the title
Revise cost_recorder BGL event visitor
BGL: Revise cost_recorder event visitor
Sep 7, 2021
The
cost_recorder
event visitor makes a copy of the edge weight property map every time it is utilized in order to get the cost of an edge. It seems like there should be a more efficient way of getting the edge weight that avoids this unnecessary amount of copyingdescartes_light/descartes_light/solvers/include/descartes_light/solvers/bgl/impl/event_visitors.hpp
Line 63 in d56038b
Also, the class should probably be renamed to
distance_recorder
since it is actually recording the distance from the start vertex to each visited vertexThe text was updated successfully, but these errors were encountered: