Skip to content

dodgr_paths documentation #321

@RegularnaMatrica

Description

@RegularnaMatrica

Hi, I've noticed that dodgr_paths don't use weight column if present (dodgr_graph_cols and make_vert_map dont use weight column) , but according to the documentation: If an additional column named weight or wt is present, shortest paths are calculated according to values specified in that column.

Currently I bypass this by:

graph[["d_weighted_orig"]] <- graph[["d_weighted"]]
in the loop ...
    penalty_vec <- ...
    graph[["d_weighted"]] <- graph[["d_weighted_orig"]] * penalty_vec
    ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    DocumentationDocumentation update needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions