66# ' sample is used to estimate timing, by calculating centrality from just a few
77# ' vertices.
88# ' @noRd
9- rcpp_centrality <- function (graph , vert_map_in , heap_type , dist_threshold , edge_centrality , sample ) {
10- .Call(`_dodgr_rcpp_centrality` , graph , vert_map_in , heap_type , dist_threshold , edge_centrality , sample )
9+ rcpp_centrality <- function (graph , vert_map_in , heap_type , dist_threshold , edge_centrality , sample ) {
10+ .Call (`_dodgr_rcpp_centrality` , graph , vert_map_in , heap_type , dist_threshold , edge_centrality , sample )
1111}
1212
1313# ' rcpp_concaveman
14- # ' @noRd
15- rcpp_concaveman <- function (xy , hull_in , concavity , length_threshold ) {
16- .Call(`_dodgr_rcpp_concaveman` , xy , hull_in , concavity , length_threshold )
14+ # ' @noRd
15+ rcpp_concaveman <- function (xy , hull_in , concavity , length_threshold ) {
16+ .Call (`_dodgr_rcpp_concaveman` , xy , hull_in , concavity , length_threshold )
1717}
1818
1919# ' De-duplicate edges by replacing with minimal weighted distances and times
@@ -28,8 +28,8 @@ rcpp_concaveman <- function(xy, hull_in, concavity, length_threshold) {
2828# ' minimal value taken from all duplicated edges. If 't_col' is specified, the
2929# ' equivalent minimal times are in the lower half of the result.
3030# ' @noRd
31- rcpp_deduplicate <- function (graph , fr_col , to_col , d_col , t_col ) {
32- .Call(`_dodgr_rcpp_deduplicate` , graph , fr_col , to_col , d_col , t_col )
31+ rcpp_deduplicate <- function (graph , fr_col , to_col , d_col , t_col ) {
32+ .Call (`_dodgr_rcpp_deduplicate` , graph , fr_col , to_col , d_col , t_col )
3333}
3434
3535# ' Make unordered_set of all new edge names
6464# ' @return Rcpp::List object of `sf::LINESTRING` geoms
6565# '
6666# ' @noRd
67- rcpp_aggregate_to_sf <- function (graph_full , graph_contr , edge_map ) {
68- .Call(`_dodgr_rcpp_aggregate_to_sf` , graph_full , graph_contr , edge_map )
67+ rcpp_aggregate_to_sf <- function (graph_full , graph_contr , edge_map ) {
68+ .Call (`_dodgr_rcpp_aggregate_to_sf` , graph_full , graph_contr , edge_map )
6969}
7070
7171# ' rcpp_flows_aggregate_par
@@ -86,8 +86,8 @@ rcpp_aggregate_to_sf <- function(graph_full, graph_contr, edge_map) {
8686# ' characters long, that chance should be 1 / 62 ^ 10.
8787# '
8888# ' @noRd
89- rcpp_flows_aggregate_par <- function (graph , vert_map_in , fromi , toi_in , flows , norm_sums , tol , heap_type ) {
90- .Call(`_dodgr_rcpp_flows_aggregate_par` , graph , vert_map_in , fromi , toi_in , flows , norm_sums , tol , heap_type )
89+ rcpp_flows_aggregate_par <- function (graph , vert_map_in , fromi , toi_in , flows , norm_sums , tol , heap_type ) {
90+ .Call (`_dodgr_rcpp_flows_aggregate_par` , graph , vert_map_in , fromi , toi_in , flows , norm_sums , tol , heap_type )
9191}
9292
9393# ' rcpp_flows_aggregate_pairwise
@@ -110,8 +110,8 @@ rcpp_flows_aggregate_par <- function(graph, vert_map_in, fromi, toi_in, flows, n
110110# ' characters long, that chance should be 1 / 62 ^ 10.
111111# '
112112# ' @noRd
113- rcpp_flows_aggregate_pairwise <- function (graph , vert_map_in , fromi , toi , flows , norm_sums , tol , heap_type ) {
114- .Call(`_dodgr_rcpp_flows_aggregate_pairwise` , graph , vert_map_in , fromi , toi , flows , norm_sums , tol , heap_type )
113+ rcpp_flows_aggregate_pairwise <- function (graph , vert_map_in , fromi , toi , flows , norm_sums , tol , heap_type ) {
114+ .Call (`_dodgr_rcpp_flows_aggregate_pairwise` , graph , vert_map_in , fromi , toi , flows , norm_sums , tol , heap_type )
115115}
116116
117117# ' rcpp_flows_disperse_par
@@ -132,8 +132,8 @@ rcpp_flows_aggregate_pairwise <- function(graph, vert_map_in, fromi, toi, flows,
132132# ' between each pair of from and to points.
133133# '
134134# ' @noRd
135- rcpp_flows_disperse_par <- function (graph , vert_map_in , fromi , k , dens , tol , heap_type ) {
136- .Call(`_dodgr_rcpp_flows_disperse_par` , graph , vert_map_in , fromi , k , dens , tol , heap_type )
135+ rcpp_flows_disperse_par <- function (graph , vert_map_in , fromi , k , dens , tol , heap_type ) {
136+ .Call (`_dodgr_rcpp_flows_disperse_par` , graph , vert_map_in , fromi , k , dens , tol , heap_type )
137137}
138138
139139# ' rcpp_flows_si
@@ -149,13 +149,13 @@ rcpp_flows_disperse_par <- function(graph, vert_map_in, fromi, k, dens, tol, hea
149149# ' (to-vertices) are not considered.
150150# '
151151# ' @noRd
152- rcpp_flows_si <- function (graph , vert_map_in , fromi , toi_in , kvec , dens_from , dens_to , norm_sums , tol , heap_type ) {
153- .Call(`_dodgr_rcpp_flows_si` , graph , vert_map_in , fromi , toi_in , kvec , dens_from , dens_to , norm_sums , tol , heap_type )
152+ rcpp_flows_si <- function (graph , vert_map_in , fromi , toi_in , kvec , dens_from , dens_to , norm_sums , tol , heap_type ) {
153+ .Call (`_dodgr_rcpp_flows_si` , graph , vert_map_in , fromi , toi_in , kvec , dens_from , dens_to , norm_sums , tol , heap_type )
154154}
155155
156156# ' @noRd
157- rcpp_fundamental_cycles <- function (graph , verts ) {
158- .Call(`_dodgr_rcpp_fundamental_cycles` , graph , verts )
157+ rcpp_fundamental_cycles <- function (graph , verts ) {
158+ .Call (`_dodgr_rcpp_fundamental_cycles` , graph , verts )
159159}
160160
161161# ' get_to_from
170170# ' same_hwy_type
171171# '
172172# ' Determine whether two edges represent the same weight category (type of
173- # ' highway for street networks, for example). Categories are not retained in
173+ # ' highway for street networks, for example). Categories are not retained in
174174# ' converted graphs, but can be discerned by comparing ratios of weighted to
175175# ' non-weighted distances.
176176# ' @noRd
188188# ' original and contracted graph.
189189# '
190190# ' @noRd
191- rcpp_contract_graph <- function (graph , vertlist_in ) {
192- .Call(`_dodgr_rcpp_contract_graph` , graph , vertlist_in )
191+ rcpp_contract_graph <- function (graph , vertlist_in ) {
192+ .Call (`_dodgr_rcpp_contract_graph` , graph , vertlist_in )
193193}
194194
195195# ' rcpp_merge_cols
@@ -203,8 +203,8 @@ rcpp_contract_graph <- function(graph, vertlist_in) {
203203# ' those edges to be retained in the directed graph.
204204# '
205205# ' @noRd
206- rcpp_merge_cols <- function (graph ) {
207- .Call(`_dodgr_rcpp_merge_cols` , graph )
206+ rcpp_merge_cols <- function (graph ) {
207+ .Call (`_dodgr_rcpp_merge_cols` , graph )
208208}
209209
210210# ' sample_one_edge_no_comps
240240# ' @return Smaller sub-set of \code{graph}
241241# '
242242# ' @noRd
243- rcpp_sample_graph <- function (graph , nverts_to_sample ) {
244- .Call(`_dodgr_rcpp_sample_graph` , graph , nverts_to_sample )
243+ rcpp_sample_graph <- function (graph , nverts_to_sample ) {
244+ .Call (`_dodgr_rcpp_sample_graph` , graph , nverts_to_sample )
245245}
246246
247247# ' graph_has_components
253253
254254# ' @name graph_from_df
255255# '
256- # ' Convert a standard graph data.frame into an object of class graph. Graphs
256+ # ' Convert a standard graph data.frame into an object of class graph. Graphs
257257# ' are standardised with the function \code{dodgr_convert_graph()$graph}, and
258258# ' contain only the four columns [from, to, d, w]
259259# '
312312# ' @return Two vectors: one of edge IDs and one of corresponding component
313313# ' numbers
314314# ' @noRd
315- rcpp_get_component_vector <- function (graph , strong = FALSE ) {
316- .Call(`_dodgr_rcpp_get_component_vector` , graph , strong )
315+ rcpp_get_component_vector <- function (graph , strong = FALSE ) {
316+ .Call (`_dodgr_rcpp_get_component_vector` , graph , strong )
317317}
318318
319319# ' rcpp_unique_rownames
@@ -322,8 +322,8 @@ rcpp_get_component_vector <- function(graph, strong = FALSE) {
322322# ' rounded to <precision>. Used when vertices have no ID values.
323323# '
324324# ' @noRd
325- rcpp_unique_rownames <- function (xyfrom , xyto , precision = 10L ) {
326- .Call(`_dodgr_rcpp_unique_rownames` , xyfrom , xyto , precision )
325+ rcpp_unique_rownames <- function (xyfrom , xyto , precision = 10L ) {
326+ .Call (`_dodgr_rcpp_unique_rownames` , xyfrom , xyto , precision )
327327}
328328
329329# ' Determine which side of intersecting line a point lies on.
356356# ' @return 0-indexed Rcpp::NumericVector index into graph of nearest points
357357# '
358358# ' @noRd
359- rcpp_points_index_par <- function (xy , pts ) {
360- .Call(`_dodgr_rcpp_points_index_par` , xy , pts )
359+ rcpp_points_index_par <- function (xy , pts ) {
360+ .Call (`_dodgr_rcpp_points_index_par` , xy , pts )
361361}
362362
363363# ' rcpp_points_to_edges_par
@@ -370,43 +370,43 @@ rcpp_points_index_par <- function(xy, pts) {
370370# ' @return 0-indexed Rcpp::NumericVector index into graph of nearest points
371371# '
372372# ' @noRd
373- rcpp_points_to_edges_par <- function (graph , pts ) {
374- .Call(`_dodgr_rcpp_points_to_edges_par` , graph , pts )
373+ rcpp_points_to_edges_par <- function (graph , pts ) {
374+ .Call (`_dodgr_rcpp_points_to_edges_par` , graph , pts )
375375}
376376
377377# ' rcpp_get_sp_dists_par
378378# '
379379# ' @noRd
380- rcpp_get_sp_dists_par <- function (graph , vert_map_in , fromi , toi_in , heap_type , is_spatial ) {
381- .Call(`_dodgr_rcpp_get_sp_dists_par` , graph , vert_map_in , fromi , toi_in , heap_type , is_spatial )
380+ rcpp_get_sp_dists_par <- function (graph , vert_map_in , fromi , toi_in , heap_type , is_spatial ) {
381+ .Call (`_dodgr_rcpp_get_sp_dists_par` , graph , vert_map_in , fromi , toi_in , heap_type , is_spatial )
382382}
383383
384384# ' rcpp_get_sp_dists_nearest
385385# '
386386# ' @noRd
387- rcpp_get_sp_dists_nearest <- function (graph , vert_map_in , fromi , toi_in , heap_type ) {
388- .Call(`_dodgr_rcpp_get_sp_dists_nearest` , graph , vert_map_in , fromi , toi_in , heap_type )
387+ rcpp_get_sp_dists_nearest <- function (graph , vert_map_in , fromi , toi_in , heap_type ) {
388+ .Call (`_dodgr_rcpp_get_sp_dists_nearest` , graph , vert_map_in , fromi , toi_in , heap_type )
389389}
390390
391391# ' rcpp_get_sp_dists_paired_par
392392# '
393393# ' @noRd
394- rcpp_get_sp_dists_paired_par <- function (graph , vert_map_in , fromi , toi , heap_type , is_spatial ) {
395- .Call(`_dodgr_rcpp_get_sp_dists_paired_par` , graph , vert_map_in , fromi , toi , heap_type , is_spatial )
394+ rcpp_get_sp_dists_paired_par <- function (graph , vert_map_in , fromi , toi , heap_type , is_spatial ) {
395+ .Call (`_dodgr_rcpp_get_sp_dists_paired_par` , graph , vert_map_in , fromi , toi , heap_type , is_spatial )
396396}
397397
398398# ' rcpp_get_iso
399399# '
400400# ' @noRd
401- rcpp_get_iso <- function (graph , vert_map_in , fromi , dlim , heap_type ) {
402- .Call(`_dodgr_rcpp_get_iso` , graph , vert_map_in , fromi , dlim , heap_type )
401+ rcpp_get_iso <- function (graph , vert_map_in , fromi , dlim , heap_type ) {
402+ .Call (`_dodgr_rcpp_get_iso` , graph , vert_map_in , fromi , dlim , heap_type )
403403}
404404
405405# ' rcpp_get_sp_dists
406406# '
407407# ' @noRd
408- rcpp_get_sp_dists <- function (graph , vert_map_in , fromi , toi_in , heap_type ) {
409- .Call(`_dodgr_rcpp_get_sp_dists` , graph , vert_map_in , fromi , toi_in , heap_type )
408+ rcpp_get_sp_dists <- function (graph , vert_map_in , fromi , toi_in , heap_type ) {
409+ .Call (`_dodgr_rcpp_get_sp_dists` , graph , vert_map_in , fromi , toi_in , heap_type )
410410}
411411
412412# ' rcpp_get_paths
@@ -427,12 +427,12 @@ rcpp_get_sp_dists <- function(graph, vert_map_in, fromi, toi_in, heap_type) {
427427# ' @note Returns 1-indexed values indexing directly into the R input
428428# '
429429# ' @noRd
430- rcpp_get_paths <- function (graph , vert_map_in , fromi , toi_in , heap_type ) {
431- .Call(`_dodgr_rcpp_get_paths` , graph , vert_map_in , fromi , toi_in , heap_type )
430+ rcpp_get_paths <- function (graph , vert_map_in , fromi , toi_in , heap_type ) {
431+ .Call (`_dodgr_rcpp_get_paths` , graph , vert_map_in , fromi , toi_in , heap_type )
432432}
433433
434- rcpp_get_paths_pairwise <- function (graph , vert_map_in , fromi , toi_in , heap_type ) {
435- .Call(`_dodgr_rcpp_get_paths_pairwise` , graph , vert_map_in , fromi , toi_in , heap_type )
434+ rcpp_get_paths_pairwise <- function (graph , vert_map_in , fromi , toi_in , heap_type ) {
435+ .Call (`_dodgr_rcpp_get_paths_pairwise` , graph , vert_map_in , fromi , toi_in , heap_type )
436436}
437437
438438# ' rcpp_get_sp_dists_categorical
@@ -444,21 +444,21 @@ rcpp_get_paths_pairwise <- function(graph, vert_map_in, fromi, toi_in, heap_type
444444# ' Implemented in parallal form only; no single-threaded version, and
445445# ' only for AStar (so graphs must be spatial).
446446# ' @noRd
447- rcpp_get_sp_dists_categorical <- function (graph , vert_map_in , fromi , toi_in , heap_type , proportions_only ) {
448- .Call(`_dodgr_rcpp_get_sp_dists_categorical` , graph , vert_map_in , fromi , toi_in , heap_type , proportions_only )
447+ rcpp_get_sp_dists_categorical <- function (graph , vert_map_in , fromi , toi_in , heap_type , proportions_only ) {
448+ .Call (`_dodgr_rcpp_get_sp_dists_categorical` , graph , vert_map_in , fromi , toi_in , heap_type , proportions_only )
449449}
450450
451451# ' rcpp_get_sp_dists_categ_paired
452452# '
453453# ' Pairwise version of 'get_sp_dists_categorical'. The `graph` must have an
454- # '`edge_type` column of non-negative integers, with 0 denoting edges which are
454+ # ' `edge_type` column of non-negative integers, with 0 denoting edges which are
455455# ' not aggregated, and all other values defining aggregation categories.
456456# '
457457# ' Implemented in parallal form only; no single-threaded version, and
458458# ' only for AStar (so graphs must be spatial).
459459# ' @noRd
460- rcpp_get_sp_dists_categ_paired <- function (graph , vert_map_in , fromi , toi_in , heap_type ) {
461- .Call(`_dodgr_rcpp_get_sp_dists_categ_paired` , graph , vert_map_in , fromi , toi_in , heap_type )
460+ rcpp_get_sp_dists_categ_paired <- function (graph , vert_map_in , fromi , toi_in , heap_type ) {
461+ .Call (`_dodgr_rcpp_get_sp_dists_categ_paired` , graph , vert_map_in , fromi , toi_in , heap_type )
462462}
463463
464464# ' rcpp_get_sp_dists_cat_threshold
@@ -470,17 +470,17 @@ rcpp_get_sp_dists_categ_paired <- function(graph, vert_map_in, fromi, toi_in, he
470470# ' Implemented in parallal form only; no single-threaded version, and
471471# ' only for AStar (so graphs must be spatial).
472472# ' @noRd
473- rcpp_get_sp_dists_cat_threshold <- function (graph , vert_map_in , fromi , dlimit , heap_type ) {
474- .Call(`_dodgr_rcpp_get_sp_dists_cat_threshold` , graph , vert_map_in , fromi , dlimit , heap_type )
473+ rcpp_get_sp_dists_cat_threshold <- function (graph , vert_map_in , fromi , dlimit , heap_type ) {
474+ .Call (`_dodgr_rcpp_get_sp_dists_cat_threshold` , graph , vert_map_in , fromi , dlimit , heap_type )
475475}
476476
477477# ' rcpp_gen_hash
478478# '
479479# ' Efficient generation of long sequences of hash keys
480480# '
481481# ' @noRd
482- rcpp_gen_hash <- function (n , hash_len ) {
483- .Call(`_dodgr_rcpp_gen_hash` , n , hash_len )
482+ rcpp_gen_hash <- function (n , hash_len ) {
483+ .Call (`_dodgr_rcpp_gen_hash` , n , hash_len )
484484}
485485
486486# ' rcpp_sf_as_network
@@ -506,14 +506,13 @@ rcpp_gen_hash <- function(n, hash_len) {
506506# ' 4. OSM way ID
507507# '
508508# ' @noRd
509- rcpp_sf_as_network <- function (sf_lines , pr ) {
510- .Call(`_dodgr_rcpp_sf_as_network` , sf_lines , pr )
509+ rcpp_sf_as_network <- function (sf_lines , pr ) {
510+ .Call (`_dodgr_rcpp_sf_as_network` , sf_lines , pr )
511511}
512512
513513# ' rcpp_route_times
514514# '
515515# ' @noRd
516- rcpp_route_times <- function (graph , left_side , turn_penalty ) {
517- .Call(`_dodgr_rcpp_route_times` , graph , left_side , turn_penalty )
518- }
519-
516+ rcpp_route_times <- function (graph , left_side , turn_penalty ) {
517+ .Call (`_dodgr_rcpp_route_times` , graph , left_side , turn_penalty )
518+ }
0 commit comments