UrbanAnalyst / dodgr

Distances on Directed Graphs in R
https://urbananalyst.github.io/dodgr/
127 stars 16 forks source link

remove duplicated edges fn #187

Closed mpadge closed 1 year ago

mpadge commented 1 year ago

Extending from #186, it would be useful in that context, and likely others, to be able to remove duplicated edges from a graph. The trial graph used there had duplication, but often with differing distances and times. A remove_dupilcated_edges() function could have an additional parameter to reduce to single edges based on a specified type of calculation, likely just "min", "max", or "mean".