Skip to content

Edge weights not being passed to igraph::shortest_paths() #14

Open
@jmlondon

Description

@jmlondon

prt_shortpath() passes NULL to the weights argument of igraph::shortest_paths() and this results in the shortest path being determined based on the fewest number of nodes instead of distance.

the fix is to use the sfnetwork::set_path_weights() to create the vector of weights and pass that instead of NULL

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions