Skip to content

BGL: Revise cost_recorder event visitor #82

@marip8

Description

@marip8

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions