Skip to content
Permalink
Browse files

sum edge distances when simplifying

  • Loading branch information...
mdlincoln committed Apr 15, 2019
1 parent 33098a8 commit a8a3f48a70f73e915dc229a8b51212a7cc986a29
Showing with 22,454 additions and 22,454 deletions.
  1. +1 −1 osmar/drake.R
  2. +22,453 −22,453 osmar/output_data/simplified/simplified_pgh_edges.csv
@@ -75,7 +75,7 @@ pgh_plan <- drake_plan(
as_tbl_graph() %>%
activate(edges) %>%
left_join(select(write_edgelist(pgh_tidy_graph), -from, -to, -distance), by = "id"),
simplified_graph = simplify_topology(flat_graph, protected_nodes = which(vertex_attr(flat_graph, "pathfinder.interface"))),
simplified_graph = simplify_topology(flat_graph, protected_nodes = which(vertex_attr(flat_graph, "pathfinder.interface")), edge_attr_comb = list(pathfinder.distance = sum, .default.combiner = first)),
simplified_pgh_nodes = as_tbl_graph(simplified_graph) %>%
write_nodelist() %>%
write_csv(path = file_out("osmar/output_data/simplified/simplified_pgh_nodes.csv"), na = ""),
Oops, something went wrong.

0 comments on commit a8a3f48

Please sign in to comment.
You can’t perform that action at this time.