Something went wrong. Try again.
Distances on Directed Graphs in R
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472// Generated by using Rcpp::compileAttributes() -> do not edit by hand// Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
#include <RcppThread.h>#include <Rcpp.h>
using namespace Rcpp;
#ifdef RCPP_USE_GLOBAL_ROSTREAMRcpp::Rostream<true>& Rcpp::Rcout = Rcpp::Rcpp_cout_get();Rcpp::Rostream<false>& Rcpp::Rcerr = Rcpp::Rcpp_cerr_get();#endif
// rcpp_centralityRcpp::NumericVector rcpp_centrality(const Rcpp::DataFrame graph, const Rcpp::DataFrame vert_map_in, const std::string& heap_type, const double dist_threshold, const bool edge_centrality, const int sample);RcppExport SEXP _dodgr_rcpp_centrality(SEXP graphSEXP, SEXP vert_map_inSEXP, SEXP heap_typeSEXP, SEXP dist_thresholdSEXP, SEXP edge_centralitySEXP, SEXP sampleSEXP) {BEGIN_RCPP Rcpp::RObject rcpp_result_gen; Rcpp::RNGScope rcpp_rngScope_gen; Rcpp::traits::input_parameter< const Rcpp::DataFrame >::type graph(graphSEXP); Rcpp::traits::input_parameter< const Rcpp::DataFrame >::type vert_map_in(vert_map_inSEXP); Rcpp::traits::input_parameter< const std::string& >::type heap_type(heap_typeSEXP); Rcpp::traits::input_parameter< const double >::type dist_threshold(dist_thresholdSEXP); Rcpp::traits::input_parameter< const bool >::type edge_centrality(edge_centralitySEXP); Rcpp::traits::input_parameter< const int >::type sample(sampleSEXP); rcpp_result_gen = Rcpp::wrap(rcpp_centrality(graph, vert_map_in, heap_type, dist_threshold, edge_centrality, sample)); return rcpp_result_gen;END_RCPP}// rcpp_concavemanRcpp::DataFrame rcpp_concaveman(Rcpp::DataFrame xy, Rcpp::NumericVector hull_in, const double concavity, const double length_threshold);RcppExport SEXP _dodgr_rcpp_concaveman(SEXP xySEXP, SEXP hull_inSEXP, SEXP concavitySEXP, SEXP length_thresholdSEXP) {BEGIN_RCPP Rcpp::RObject rcpp_result_gen; Rcpp::RNGScope rcpp_rngScope_gen; Rcpp::traits::input_parameter< Rcpp::DataFrame >::type xy(xySEXP); Rcpp::traits::input_parameter< Rcpp::NumericVector >::type hull_in(hull_inSEXP); Rcpp::traits::input_parameter< const double >::type concavity(concavitySEXP); Rcpp::traits::input_parameter< const double >::type length_threshold(length_thresholdSEXP); rcpp_result_gen = Rcpp::wrap(rcpp_concaveman(xy, hull_in, concavity, length_threshold)); return rcpp_result_gen;END_RCPP}// rcpp_deduplicateRcpp::DataFrame rcpp_deduplicate(const Rcpp::DataFrame& graph, const std::string fr_col, const std::string to_col, const std::string d_col, const std::string t_col);RcppExport SEXP _dodgr_rcpp_deduplicate(SEXP graphSEXP, SEXP fr_colSEXP, SEXP to_colSEXP, SEXP d_colSEXP, SEXP t_colSEXP) {BEGIN_RCPP Rcpp::RObject rcpp_result_gen; Rcpp::RNGScope rcpp_rngScope_gen; Rcpp::traits::input_parameter< const Rcpp::DataFrame& >::type graph(graphSEXP); Rcpp::traits::input_parameter< const std::string >::type fr_col(fr_colSEXP); Rcpp::traits::input_parameter< const std::string >::type to_col(to_colSEXP); Rcpp::traits::input_parameter< const std::string >::type d_col(d_colSEXP); Rcpp::traits::input_parameter< const std::string >::type t_col(t_colSEXP); rcpp_result_gen = Rcpp::wrap(rcpp_deduplicate(graph, fr_col, to_col, d_col, t_col)); return rcpp_result_gen;END_RCPP}// rcpp_aggregate_to_sfRcpp::List rcpp_aggregate_to_sf(const Rcpp::DataFrame& graph_full, const Rcpp::DataFrame& graph_contr, const Rcpp::DataFrame& edge_map);RcppExport SEXP _dodgr_rcpp_aggregate_to_sf(SEXP graph_fullSEXP, SEXP graph_contrSEXP, SEXP edge_mapSEXP) {BEGIN_RCPP Rcpp::RObject rcpp_result_gen; Rcpp::RNGScope rcpp_rngScope_gen; Rcpp::traits::input_parameter< const Rcpp::DataFrame& >::type graph_full(graph_fullSEXP); Rcpp::traits::input_parameter< const Rcpp::DataFrame& >::type graph_contr(graph_contrSEXP); Rcpp::traits::input_parameter< const Rcpp::DataFrame& >::type edge_map(edge_mapSEXP); rcpp_result_gen = Rcpp::wrap(rcpp_aggregate_to_sf(graph_full, graph_contr, edge_map)); return rcpp_result_gen;END_RCPP}// rcpp_flows_aggregate_parRcpp::NumericVector rcpp_flows_aggregate_par(const Rcpp::DataFrame graph, const Rcpp::DataFrame vert_map_in, Rcpp::IntegerVector fromi, Rcpp::IntegerVector toi_in, Rcpp::NumericMatrix flows, const bool norm_sums, const double tol, const std::string heap_type);RcppExport SEXP _dodgr_rcpp_flows_aggregate_par(SEXP graphSEXP, SEXP vert_map_inSEXP, SEXP fromiSEXP, SEXP toi_inSEXP, SEXP flowsSEXP, SEXP norm_sumsSEXP, SEXP tolSEXP, SEXP heap_typeSEXP) {BEGIN_RCPP Rcpp::RObject rcpp_result_gen; Rcpp::RNGScope rcpp_rngScope_gen; Rcpp::traits::input_parameter< const Rcpp::DataFrame >::type graph(graphSEXP); Rcpp::traits::input_parameter< const Rcpp::DataFrame >::type vert_map_in(vert_map_inSEXP); Rcpp::traits::input_parameter< Rcpp::IntegerVector >::type fromi(fromiSEXP); Rcpp::traits::input_parameter< Rcpp::IntegerVector >::type toi_in(toi_inSEXP); Rcpp::traits::input_parameter< Rcpp::NumericMatrix >::type flows(flowsSEXP); Rcpp::traits::input_parameter< const bool >::type norm_sums(norm_sumsSEXP); Rcpp::traits::input_parameter< const double >::type tol(tolSEXP); Rcpp::traits::input_parameter< const std::string >::type heap_type(heap_typeSEXP); rcpp_result_gen = Rcpp::wrap(rcpp_flows_aggregate_par(graph, vert_map_in, fromi, toi_in, flows, norm_sums, tol, heap_type)); return rcpp_result_gen;END_RCPP}// rcpp_flows_aggregate_pairwiseRcpp::NumericVector rcpp_flows_aggregate_pairwise(const Rcpp::DataFrame graph, const Rcpp::DataFrame vert_map_in, Rcpp::IntegerVector fromi, Rcpp::IntegerVector toi, Rcpp::NumericVector flows, const bool norm_sums, const double tol, const std::string heap_type);RcppExport SEXP _dodgr_rcpp_flows_aggregate_pairwise(SEXP graphSEXP, SEXP vert_map_inSEXP, SEXP fromiSEXP, SEXP toiSEXP, SEXP flowsSEXP, SEXP norm_sumsSEXP, SEXP tolSEXP, SEXP heap_typeSEXP) {BEGIN_RCPP Rcpp::RObject rcpp_result_gen; Rcpp::RNGScope rcpp_rngScope_gen; Rcpp::traits::input_parameter< const Rcpp::DataFrame >::type graph(graphSEXP); Rcpp::traits::input_parameter< const Rcpp::DataFrame >::type vert_map_in(vert_map_inSEXP); Rcpp::traits::input_parameter< Rcpp::IntegerVector >::type fromi(fromiSEXP); Rcpp::traits::input_parameter< Rcpp::IntegerVector >::type toi(toiSEXP); Rcpp::traits::input_parameter< Rcpp::NumericVector >::type flows(flowsSEXP); Rcpp::traits::input_parameter< const bool >::type norm_sums(norm_sumsSEXP); Rcpp::traits::input_parameter< const double >::type tol(tolSEXP); Rcpp::traits::input_parameter< const std::string >::type heap_type(heap_typeSEXP); rcpp_result_gen = Rcpp::wrap(rcpp_flows_aggregate_pairwise(graph, vert_map_in, fromi, toi, flows, norm_sums, tol, heap_type)); return rcpp_result_gen;END_RCPP}// rcpp_flows_disperse_parRcpp::NumericVector rcpp_flows_disperse_par(const Rcpp::DataFrame graph, const Rcpp::DataFrame vert_map_in, Rcpp::IntegerVector fromi, Rcpp::NumericVector k, Rcpp::NumericVector dens, const double& tol, std::string heap_type);RcppExport SEXP _dodgr_rcpp_flows_disperse_par(SEXP graphSEXP, SEXP vert_map_inSEXP, SEXP fromiSEXP, SEXP kSEXP, SEXP densSEXP, SEXP tolSEXP, SEXP heap_typeSEXP) {BEGIN_RCPP Rcpp::RObject rcpp_result_gen; Rcpp::RNGScope rcpp_rngScope_gen; Rcpp::traits::input_parameter< const Rcpp::DataFrame >::type graph(graphSEXP); Rcpp::traits::input_parameter< const Rcpp::DataFrame >::type vert_map_in(vert_map_inSEXP); Rcpp::traits::input_parameter< Rcpp::IntegerVector >::type fromi(fromiSEXP); Rcpp::traits::input_parameter< Rcpp::NumericVector >::type k(kSEXP); Rcpp::traits::input_parameter< Rcpp::NumericVector >::type dens(densSEXP); Rcpp::traits::input_parameter< const double& >::type tol(tolSEXP); Rcpp::traits::input_parameter< std::string >::type heap_type(heap_typeSEXP); rcpp_result_gen = Rcpp::wrap(rcpp_flows_disperse_par(graph, vert_map_in, fromi, k, dens, tol, heap_type)); return rcpp_result_gen;END_RCPP}// rcpp_flows_siRcpp::NumericVector rcpp_flows_si(const Rcpp::DataFrame graph, const Rcpp::DataFrame vert_map_in, Rcpp::IntegerVector fromi, Rcpp::IntegerVector toi_in, Rcpp::NumericVector kvec, Rcpp::NumericVector dens_from, Rcpp::NumericVector dens_to, const bool norm_sums, const double tol, const std::string heap_type);RcppExport SEXP _dodgr_rcpp_flows_si(SEXP graphSEXP, SEXP vert_map_inSEXP, SEXP fromiSEXP, SEXP toi_inSEXP, SEXP kvecSEXP, SEXP dens_fromSEXP, SEXP dens_toSEXP, SEXP norm_sumsSEXP, SEXP tolSEXP, SEXP heap_typeSEXP) {BEGIN_RCPP Rcpp::RObject rcpp_result_gen; Rcpp::RNGScope rcpp_rngScope_gen; Rcpp::traits::input_parameter< const Rcpp::DataFrame >::type graph(graphSEXP); Rcpp::traits::input_parameter< const Rcpp::DataFrame >::type vert_map_in(vert_map_inSEXP); Rcpp::traits::input_parameter< Rcpp::IntegerVector >::type fromi(fromiSEXP); Rcpp::traits::input_parameter< Rcpp::IntegerVector >::type toi_in(toi_inSEXP); Rcpp::traits::input_parameter< Rcpp::NumericVector >::type kvec(kvecSEXP); Rcpp::traits::input_parameter< Rcpp::NumericVector >::type dens_from(dens_fromSEXP); Rcpp::traits::input_parameter< Rcpp::NumericVector >::type dens_to(dens_toSEXP); Rcpp::traits::input_parameter< const bool >::type norm_sums(norm_sumsSEXP); Rcpp::traits::input_parameter< const double >::type tol(tolSEXP); Rcpp::traits::input_parameter< const std::string >::type heap_type(heap_typeSEXP); rcpp_result_gen = Rcpp::wrap(rcpp_flows_si(graph, vert_map_in, fromi, toi_in, kvec, dens_from, dens_to, norm_sums, tol, heap_type)); return rcpp_result_gen;END_RCPP}// rcpp_fundamental_cyclesRcpp::List rcpp_fundamental_cycles(Rcpp::DataFrame graph, Rcpp::DataFrame verts);RcppExport SEXP _dodgr_rcpp_fundamental_cycles(SEXP graphSEXP, SEXP vertsSEXP) {BEGIN_RCPP Rcpp::RObject rcpp_result_gen; Rcpp::RNGScope rcpp_rngScope_gen; Rcpp::traits::input_parameter< Rcpp::DataFrame >::type graph(graphSEXP); Rcpp::traits::input_parameter< Rcpp::DataFrame >::type verts(vertsSEXP); rcpp_result_gen = Rcpp::wrap(rcpp_fundamental_cycles(graph, verts)); return rcpp_result_gen;END_RCPP}// rcpp_contract_graphRcpp::List rcpp_contract_graph(const Rcpp::DataFrame& graph, Rcpp::Nullable <Rcpp::StringVector>& vertlist_in);RcppExport SEXP _dodgr_rcpp_contract_graph(SEXP graphSEXP, SEXP vertlist_inSEXP) {BEGIN_RCPP Rcpp::RObject rcpp_result_gen; Rcpp::RNGScope rcpp_rngScope_gen; Rcpp::traits::input_parameter< const Rcpp::DataFrame& >::type graph(graphSEXP); Rcpp::traits::input_parameter< Rcpp::Nullable <Rcpp::StringVector>& >::type vertlist_in(vertlist_inSEXP); rcpp_result_gen = Rcpp::wrap(rcpp_contract_graph(graph, vertlist_in)); return rcpp_result_gen;END_RCPP}// rcpp_merge_colsRcpp::NumericVector rcpp_merge_cols(Rcpp::DataFrame graph);RcppExport SEXP _dodgr_rcpp_merge_cols(SEXP graphSEXP) {BEGIN_RCPP Rcpp::RObject rcpp_result_gen; Rcpp::RNGScope rcpp_rngScope_gen; Rcpp::traits::input_parameter< Rcpp::DataFrame >::type graph(graphSEXP); rcpp_result_gen = Rcpp::wrap(rcpp_merge_cols(graph)); return rcpp_result_gen;END_RCPP}// rcpp_sample_graphRcpp::StringVector rcpp_sample_graph(Rcpp::DataFrame graph, size_t nverts_to_sample);RcppExport SEXP _dodgr_rcpp_sample_graph(SEXP graphSEXP, SEXP nverts_to_sampleSEXP) {BEGIN_RCPP Rcpp::RObject rcpp_result_gen; Rcpp::RNGScope rcpp_rngScope_gen; Rcpp::traits::input_parameter< Rcpp::DataFrame >::type graph(graphSEXP); Rcpp::traits::input_parameter< size_t >::type nverts_to_sample(nverts_to_sampleSEXP); rcpp_result_gen = Rcpp::wrap(rcpp_sample_graph(graph, nverts_to_sample)); return rcpp_result_gen;END_RCPP}// rcpp_get_component_vectorRcpp::List rcpp_get_component_vector(const Rcpp::DataFrame& graph, bool strong);RcppExport SEXP _dodgr_rcpp_get_component_vector(SEXP graphSEXP, SEXP strongSEXP) {BEGIN_RCPP Rcpp::RObject rcpp_result_gen; Rcpp::RNGScope rcpp_rngScope_gen; Rcpp::traits::input_parameter< const Rcpp::DataFrame& >::type graph(graphSEXP); Rcpp::traits::input_parameter< bool >::type strong(strongSEXP); rcpp_result_gen = Rcpp::wrap(rcpp_get_component_vector(graph, strong)); return rcpp_result_gen;END_RCPP}// rcpp_unique_rownamesRcpp::DataFrame rcpp_unique_rownames(Rcpp::DataFrame xyfrom, Rcpp::DataFrame xyto, const int precision);RcppExport SEXP _dodgr_rcpp_unique_rownames(SEXP xyfromSEXP, SEXP xytoSEXP, SEXP precisionSEXP) {BEGIN_RCPP Rcpp::RObject rcpp_result_gen; Rcpp::RNGScope rcpp_rngScope_gen; Rcpp::traits::input_parameter< Rcpp::DataFrame >::type xyfrom(xyfromSEXP); Rcpp::traits::input_parameter< Rcpp::DataFrame >::type xyto(xytoSEXP); Rcpp::traits::input_parameter< const int >::type precision(precisionSEXP); rcpp_result_gen = Rcpp::wrap(rcpp_unique_rownames(xyfrom, xyto, precision)); return rcpp_result_gen;END_RCPP}// rcpp_points_index_parRcpp::IntegerVector rcpp_points_index_par(const Rcpp::DataFrame& xy, Rcpp::DataFrame& pts);RcppExport SEXP _dodgr_rcpp_points_index_par(SEXP xySEXP, SEXP ptsSEXP) {BEGIN_RCPP Rcpp::RObject rcpp_result_gen; Rcpp::RNGScope rcpp_rngScope_gen; Rcpp::traits::input_parameter< const Rcpp::DataFrame& >::type xy(xySEXP); Rcpp::traits::input_parameter< Rcpp::DataFrame& >::type pts(ptsSEXP); rcpp_result_gen = Rcpp::wrap(rcpp_points_index_par(xy, pts)); return rcpp_result_gen;END_RCPP}// rcpp_points_to_edges_parRcpp::NumericVector rcpp_points_to_edges_par(const Rcpp::DataFrame& graph, Rcpp::DataFrame& pts);RcppExport SEXP _dodgr_rcpp_points_to_edges_par(SEXP graphSEXP, SEXP ptsSEXP) {BEGIN_RCPP Rcpp::RObject rcpp_result_gen; Rcpp::RNGScope rcpp_rngScope_gen; Rcpp::traits::input_parameter< const Rcpp::DataFrame& >::type graph(graphSEXP); Rcpp::traits::input_parameter< Rcpp::DataFrame& >::type pts(ptsSEXP); rcpp_result_gen = Rcpp::wrap(rcpp_points_to_edges_par(graph, pts)); return rcpp_result_gen;END_RCPP}// rcpp_get_sp_dists_parRcpp::NumericMatrix rcpp_get_sp_dists_par(const Rcpp::DataFrame graph, const Rcpp::DataFrame vert_map_in, Rcpp::IntegerVector fromi, Rcpp::IntegerVector toi_in, const std::string& heap_type, const bool is_spatial);RcppExport SEXP _dodgr_rcpp_get_sp_dists_par(SEXP graphSEXP, SEXP vert_map_inSEXP, SEXP fromiSEXP, SEXP toi_inSEXP, SEXP heap_typeSEXP, SEXP is_spatialSEXP) {BEGIN_RCPP Rcpp::RObject rcpp_result_gen; Rcpp::RNGScope rcpp_rngScope_gen; Rcpp::traits::input_parameter< const Rcpp::DataFrame >::type graph(graphSEXP); Rcpp::traits::input_parameter< const Rcpp::DataFrame >::type vert_map_in(vert_map_inSEXP); Rcpp::traits::input_parameter< Rcpp::IntegerVector >::type fromi(fromiSEXP); Rcpp::traits::input_parameter< Rcpp::IntegerVector >::type toi_in(toi_inSEXP); Rcpp::traits::input_parameter< const std::string& >::type heap_type(heap_typeSEXP); Rcpp::traits::input_parameter< const bool >::type is_spatial(is_spatialSEXP); rcpp_result_gen = Rcpp::wrap(rcpp_get_sp_dists_par(graph, vert_map_in, fromi, toi_in, heap_type, is_spatial)); return rcpp_result_gen;END_RCPP}// rcpp_get_sp_dists_nearestRcpp::NumericVector rcpp_get_sp_dists_nearest(const Rcpp::DataFrame graph, const Rcpp::DataFrame vert_map_in, Rcpp::IntegerVector fromi, Rcpp::IntegerVector toi_in, const std::string& heap_type);RcppExport SEXP _dodgr_rcpp_get_sp_dists_nearest(SEXP graphSEXP, SEXP vert_map_inSEXP, SEXP fromiSEXP, SEXP toi_inSEXP, SEXP heap_typeSEXP) {BEGIN_RCPP Rcpp::RObject rcpp_result_gen; Rcpp::RNGScope rcpp_rngScope_gen; Rcpp::traits::input_parameter< const Rcpp::DataFrame >::type graph(graphSEXP); Rcpp::traits::input_parameter< const Rcpp::DataFrame >::type vert_map_in(vert_map_inSEXP); Rcpp::traits::input_parameter< Rcpp::IntegerVector >::type fromi(fromiSEXP); Rcpp::traits::input_parameter< Rcpp::IntegerVector >::type toi_in(toi_inSEXP); Rcpp::traits::input_parameter< const std::string& >::type heap_type(heap_typeSEXP); rcpp_result_gen = Rcpp::wrap(rcpp_get_sp_dists_nearest(graph, vert_map_in, fromi, toi_in, heap_type)); return rcpp_result_gen;END_RCPP}// rcpp_get_sp_dists_paired_parRcpp::NumericMatrix rcpp_get_sp_dists_paired_par(const Rcpp::DataFrame graph, const Rcpp::DataFrame vert_map_in, Rcpp::IntegerVector fromi, Rcpp::IntegerVector toi, const std::string& heap_type, const bool is_spatial, const bool do_bidirectional);RcppExport SEXP _dodgr_rcpp_get_sp_dists_paired_par(SEXP graphSEXP, SEXP vert_map_inSEXP, SEXP fromiSEXP, SEXP toiSEXP, SEXP heap_typeSEXP, SEXP is_spatialSEXP, SEXP do_bidirectionalSEXP) {BEGIN_RCPP Rcpp::RObject rcpp_result_gen; Rcpp::RNGScope rcpp_rngScope_gen; Rcpp::traits::input_parameter< const Rcpp::DataFrame >::type graph(graphSEXP); Rcpp::traits::input_parameter< const Rcpp::DataFrame >::type vert_map_in(vert_map_inSEXP); Rcpp::traits::input_parameter< Rcpp::IntegerVector >::type fromi(fromiSEXP); Rcpp::traits::input_parameter< Rcpp::IntegerVector >::type toi(toiSEXP); Rcpp::traits::input_parameter< const std::string& >::type heap_type(heap_typeSEXP); Rcpp::traits::input_parameter< const bool >::type is_spatial(is_spatialSEXP); Rcpp::traits::input_parameter< const bool >::type do_bidirectional(do_bidirectionalSEXP); rcpp_result_gen = Rcpp::wrap(rcpp_get_sp_dists_paired_par(graph, vert_map_in, fromi, toi, heap_type, is_spatial, do_bidirectional)); return rcpp_result_gen;END_RCPP}// rcpp_get_isoRcpp::NumericMatrix rcpp_get_iso(const Rcpp::DataFrame graph, const Rcpp::DataFrame vert_map_in, Rcpp::IntegerVector fromi, Rcpp::NumericVector dlim, const std::string& heap_type);RcppExport SEXP _dodgr_rcpp_get_iso(SEXP graphSEXP, SEXP vert_map_inSEXP, SEXP fromiSEXP, SEXP dlimSEXP, SEXP heap_typeSEXP) {BEGIN_RCPP Rcpp::RObject rcpp_result_gen; Rcpp::RNGScope rcpp_rngScope_gen; Rcpp::traits::input_parameter< const Rcpp::DataFrame >::type graph(graphSEXP); Rcpp::traits::input_parameter< const Rcpp::DataFrame >::type vert_map_in(vert_map_inSEXP); Rcpp::traits::input_parameter< Rcpp::IntegerVector >::type fromi(fromiSEXP); Rcpp::traits::input_parameter< Rcpp::NumericVector >::type dlim(dlimSEXP); Rcpp::traits::input_parameter< const std::string& >::type heap_type(heap_typeSEXP); rcpp_result_gen = Rcpp::wrap(rcpp_get_iso(graph, vert_map_in, fromi, dlim, heap_type)); return rcpp_result_gen;END_RCPP}// rcpp_get_sp_distsRcpp::NumericMatrix rcpp_get_sp_dists(const Rcpp::DataFrame graph, const Rcpp::DataFrame vert_map_in, Rcpp::IntegerVector fromi, Rcpp::IntegerVector toi_in, const std::string& heap_type);RcppExport SEXP _dodgr_rcpp_get_sp_dists(SEXP graphSEXP, SEXP vert_map_inSEXP, SEXP fromiSEXP, SEXP toi_inSEXP, SEXP heap_typeSEXP) {BEGIN_RCPP Rcpp::RObject rcpp_result_gen; Rcpp::RNGScope rcpp_rngScope_gen; Rcpp::traits::input_parameter< const Rcpp::DataFrame >::type graph(graphSEXP); Rcpp::traits::input_parameter< const Rcpp::DataFrame >::type vert_map_in(vert_map_inSEXP); Rcpp::traits::input_parameter< Rcpp::IntegerVector >::type fromi(fromiSEXP); Rcpp::traits::input_parameter< Rcpp::IntegerVector >::type toi_in(toi_inSEXP); Rcpp::traits::input_parameter< const std::string& >::type heap_type(heap_typeSEXP); rcpp_result_gen = Rcpp::wrap(rcpp_get_sp_dists(graph, vert_map_in, fromi, toi_in, heap_type)); return rcpp_result_gen;END_RCPP}// rcpp_get_pathsRcpp::List rcpp_get_paths(const Rcpp::DataFrame graph, const Rcpp::DataFrame vert_map_in, Rcpp::IntegerVector fromi, Rcpp::IntegerVector toi_in, const std::string& heap_type);RcppExport SEXP _dodgr_rcpp_get_paths(SEXP graphSEXP, SEXP vert_map_inSEXP, SEXP fromiSEXP, SEXP toi_inSEXP, SEXP heap_typeSEXP) {BEGIN_RCPP Rcpp::RObject rcpp_result_gen; Rcpp::RNGScope rcpp_rngScope_gen; Rcpp::traits::input_parameter< const Rcpp::DataFrame >::type graph(graphSEXP); Rcpp::traits::input_parameter< const Rcpp::DataFrame >::type vert_map_in(vert_map_inSEXP); Rcpp::traits::input_parameter< Rcpp::IntegerVector >::type fromi(fromiSEXP); Rcpp::traits::input_parameter< Rcpp::IntegerVector >::type toi_in(toi_inSEXP); Rcpp::traits::input_parameter< const std::string& >::type heap_type(heap_typeSEXP); rcpp_result_gen = Rcpp::wrap(rcpp_get_paths(graph, vert_map_in, fromi, toi_in, heap_type)); return rcpp_result_gen;END_RCPP}// rcpp_get_paths_pairwiseRcpp::List rcpp_get_paths_pairwise(const Rcpp::DataFrame graph, const Rcpp::DataFrame vert_map_in, Rcpp::IntegerVector fromi, Rcpp::IntegerVector toi_in, const std::string& heap_type, const bool is_spatial, const bool do_bidirectional);RcppExport SEXP _dodgr_rcpp_get_paths_pairwise(SEXP graphSEXP, SEXP vert_map_inSEXP, SEXP fromiSEXP, SEXP toi_inSEXP, SEXP heap_typeSEXP, SEXP is_spatialSEXP, SEXP do_bidirectionalSEXP) {BEGIN_RCPP Rcpp::RObject rcpp_result_gen; Rcpp::RNGScope rcpp_rngScope_gen; Rcpp::traits::input_parameter< const Rcpp::DataFrame >::type graph(graphSEXP); Rcpp::traits::input_parameter< const Rcpp::DataFrame >::type vert_map_in(vert_map_inSEXP); Rcpp::traits::input_parameter< Rcpp::IntegerVector >::type fromi(fromiSEXP); Rcpp::traits::input_parameter< Rcpp::IntegerVector >::type toi_in(toi_inSEXP); Rcpp::traits::input_parameter< const std::string& >::type heap_type(heap_typeSEXP); Rcpp::traits::input_parameter< const bool >::type is_spatial(is_spatialSEXP); Rcpp::traits::input_parameter< const bool >::type do_bidirectional(do_bidirectionalSEXP); rcpp_result_gen = Rcpp::wrap(rcpp_get_paths_pairwise(graph, vert_map_in, fromi, toi_in, heap_type, is_spatial, do_bidirectional)); return rcpp_result_gen;END_RCPP}// rcpp_get_sp_dists_categoricalRcpp::NumericMatrix rcpp_get_sp_dists_categorical(const Rcpp::DataFrame graph, const Rcpp::DataFrame vert_map_in, Rcpp::IntegerVector fromi, Rcpp::IntegerVector toi_in, const std::string& heap_type, const bool proportions_only);RcppExport SEXP _dodgr_rcpp_get_sp_dists_categorical(SEXP graphSEXP, SEXP vert_map_inSEXP, SEXP fromiSEXP, SEXP toi_inSEXP, SEXP heap_typeSEXP, SEXP proportions_onlySEXP) {BEGIN_RCPP Rcpp::RObject rcpp_result_gen; Rcpp::RNGScope rcpp_rngScope_gen; Rcpp::traits::input_parameter< const Rcpp::DataFrame >::type graph(graphSEXP); Rcpp::traits::input_parameter< const Rcpp::DataFrame >::type vert_map_in(vert_map_inSEXP); Rcpp::traits::input_parameter< Rcpp::IntegerVector >::type fromi(fromiSEXP); Rcpp::traits::input_parameter< Rcpp::IntegerVector >::type toi_in(toi_inSEXP); Rcpp::traits::input_parameter< const std::string& >::type heap_type(heap_typeSEXP); Rcpp::traits::input_parameter< const bool >::type proportions_only(proportions_onlySEXP); rcpp_result_gen = Rcpp::wrap(rcpp_get_sp_dists_categorical(graph, vert_map_in, fromi, toi_in, heap_type, proportions_only)); return rcpp_result_gen;END_RCPP}// rcpp_get_sp_dists_categ_pairedRcpp::NumericMatrix rcpp_get_sp_dists_categ_paired(const Rcpp::DataFrame graph, const Rcpp::DataFrame vert_map_in, Rcpp::IntegerVector fromi, Rcpp::IntegerVector toi_in, const std::string& heap_type);RcppExport SEXP _dodgr_rcpp_get_sp_dists_categ_paired(SEXP graphSEXP, SEXP vert_map_inSEXP, SEXP fromiSEXP, SEXP toi_inSEXP, SEXP heap_typeSEXP) {BEGIN_RCPP Rcpp::RObject rcpp_result_gen; Rcpp::RNGScope rcpp_rngScope_gen; Rcpp::traits::input_parameter< const Rcpp::DataFrame >::type graph(graphSEXP); Rcpp::traits::input_parameter< const Rcpp::DataFrame >::type vert_map_in(vert_map_inSEXP); Rcpp::traits::input_parameter< Rcpp::IntegerVector >::type fromi(fromiSEXP); Rcpp::traits::input_parameter< Rcpp::IntegerVector >::type toi_in(toi_inSEXP); Rcpp::traits::input_parameter< const std::string& >::type heap_type(heap_typeSEXP); rcpp_result_gen = Rcpp::wrap(rcpp_get_sp_dists_categ_paired(graph, vert_map_in, fromi, toi_in, heap_type)); return rcpp_result_gen;END_RCPP}// rcpp_get_sp_dists_cat_thresholdRcpp::NumericMatrix rcpp_get_sp_dists_cat_threshold(const Rcpp::DataFrame graph, const Rcpp::DataFrame vert_map_in, Rcpp::IntegerVector fromi, const double dlimit, const std::string& heap_type);RcppExport SEXP _dodgr_rcpp_get_sp_dists_cat_threshold(SEXP graphSEXP, SEXP vert_map_inSEXP, SEXP fromiSEXP, SEXP dlimitSEXP, SEXP heap_typeSEXP) {BEGIN_RCPP Rcpp::RObject rcpp_result_gen; Rcpp::RNGScope rcpp_rngScope_gen; Rcpp::traits::input_parameter< const Rcpp::DataFrame >::type graph(graphSEXP); Rcpp::traits::input_parameter< const Rcpp::DataFrame >::type vert_map_in(vert_map_inSEXP); Rcpp::traits::input_parameter< Rcpp::IntegerVector >::type fromi(fromiSEXP); Rcpp::traits::input_parameter< const double >::type dlimit(dlimitSEXP); Rcpp::traits::input_parameter< const std::string& >::type heap_type(heap_typeSEXP); rcpp_result_gen = Rcpp::wrap(rcpp_get_sp_dists_cat_threshold(graph, vert_map_in, fromi, dlimit, heap_type)); return rcpp_result_gen;END_RCPP}// rcpp_gen_hashRcpp::CharacterVector rcpp_gen_hash(const int n, const size_t hash_len);RcppExport SEXP _dodgr_rcpp_gen_hash(SEXP nSEXP, SEXP hash_lenSEXP) {BEGIN_RCPP Rcpp::RObject rcpp_result_gen; Rcpp::RNGScope rcpp_rngScope_gen; Rcpp::traits::input_parameter< const int >::type n(nSEXP); Rcpp::traits::input_parameter< const size_t >::type hash_len(hash_lenSEXP); rcpp_result_gen = Rcpp::wrap(rcpp_gen_hash(n, hash_len)); return rcpp_result_gen;END_RCPP}// rcpp_sf_as_networkRcpp::List rcpp_sf_as_network(const Rcpp::List& sf_lines, const Rcpp::DataFrame& pr);RcppExport SEXP _dodgr_rcpp_sf_as_network(SEXP sf_linesSEXP, SEXP prSEXP) {BEGIN_RCPP Rcpp::RObject rcpp_result_gen; Rcpp::RNGScope rcpp_rngScope_gen; Rcpp::traits::input_parameter< const Rcpp::List& >::type sf_lines(sf_linesSEXP); Rcpp::traits::input_parameter< const Rcpp::DataFrame& >::type pr(prSEXP); rcpp_result_gen = Rcpp::wrap(rcpp_sf_as_network(sf_lines, pr)); return rcpp_result_gen;END_RCPP}// rcpp_route_timesRcpp::List rcpp_route_times(const Rcpp::DataFrame graph, bool left_side, int turn_penalty);RcppExport SEXP _dodgr_rcpp_route_times(SEXP graphSEXP, SEXP left_sideSEXP, SEXP turn_penaltySEXP) {BEGIN_RCPP Rcpp::RObject rcpp_result_gen; Rcpp::RNGScope rcpp_rngScope_gen; Rcpp::traits::input_parameter< const Rcpp::DataFrame >::type graph(graphSEXP); Rcpp::traits::input_parameter< bool >::type left_side(left_sideSEXP); Rcpp::traits::input_parameter< int >::type turn_penalty(turn_penaltySEXP); rcpp_result_gen = Rcpp::wrap(rcpp_route_times(graph, left_side, turn_penalty)); return rcpp_result_gen;END_RCPP}
static const R_CallMethodDef CallEntries[] = { {"_dodgr_rcpp_centrality", (DL_FUNC) &_dodgr_rcpp_centrality, 6}, {"_dodgr_rcpp_concaveman", (DL_FUNC) &_dodgr_rcpp_concaveman, 4}, {"_dodgr_rcpp_deduplicate", (DL_FUNC) &_dodgr_rcpp_deduplicate, 5}, {"_dodgr_rcpp_aggregate_to_sf", (DL_FUNC) &_dodgr_rcpp_aggregate_to_sf, 3}, {"_dodgr_rcpp_flows_aggregate_par", (DL_FUNC) &_dodgr_rcpp_flows_aggregate_par, 8}, {"_dodgr_rcpp_flows_aggregate_pairwise", (DL_FUNC) &_dodgr_rcpp_flows_aggregate_pairwise, 8}, {"_dodgr_rcpp_flows_disperse_par", (DL_FUNC) &_dodgr_rcpp_flows_disperse_par, 7}, {"_dodgr_rcpp_flows_si", (DL_FUNC) &_dodgr_rcpp_flows_si, 10}, {"_dodgr_rcpp_fundamental_cycles", (DL_FUNC) &_dodgr_rcpp_fundamental_cycles, 2}, {"_dodgr_rcpp_contract_graph", (DL_FUNC) &_dodgr_rcpp_contract_graph, 2}, {"_dodgr_rcpp_merge_cols", (DL_FUNC) &_dodgr_rcpp_merge_cols, 1}, {"_dodgr_rcpp_sample_graph", (DL_FUNC) &_dodgr_rcpp_sample_graph, 2}, {"_dodgr_rcpp_get_component_vector", (DL_FUNC) &_dodgr_rcpp_get_component_vector, 2}, {"_dodgr_rcpp_unique_rownames", (DL_FUNC) &_dodgr_rcpp_unique_rownames, 3}, {"_dodgr_rcpp_points_index_par", (DL_FUNC) &_dodgr_rcpp_points_index_par, 2}, {"_dodgr_rcpp_points_to_edges_par", (DL_FUNC) &_dodgr_rcpp_points_to_edges_par, 2}, {"_dodgr_rcpp_get_sp_dists_par", (DL_FUNC) &_dodgr_rcpp_get_sp_dists_par, 6}, {"_dodgr_rcpp_get_sp_dists_nearest", (DL_FUNC) &_dodgr_rcpp_get_sp_dists_nearest, 5}, {"_dodgr_rcpp_get_sp_dists_paired_par", (DL_FUNC) &_dodgr_rcpp_get_sp_dists_paired_par, 7}, {"_dodgr_rcpp_get_iso", (DL_FUNC) &_dodgr_rcpp_get_iso, 5}, {"_dodgr_rcpp_get_sp_dists", (DL_FUNC) &_dodgr_rcpp_get_sp_dists, 5}, {"_dodgr_rcpp_get_paths", (DL_FUNC) &_dodgr_rcpp_get_paths, 5}, {"_dodgr_rcpp_get_paths_pairwise", (DL_FUNC) &_dodgr_rcpp_get_paths_pairwise, 7}, {"_dodgr_rcpp_get_sp_dists_categorical", (DL_FUNC) &_dodgr_rcpp_get_sp_dists_categorical, 6}, {"_dodgr_rcpp_get_sp_dists_categ_paired", (DL_FUNC) &_dodgr_rcpp_get_sp_dists_categ_paired, 5}, {"_dodgr_rcpp_get_sp_dists_cat_threshold", (DL_FUNC) &_dodgr_rcpp_get_sp_dists_cat_threshold, 5}, {"_dodgr_rcpp_gen_hash", (DL_FUNC) &_dodgr_rcpp_gen_hash, 2}, {"_dodgr_rcpp_sf_as_network", (DL_FUNC) &_dodgr_rcpp_sf_as_network, 2}, {"_dodgr_rcpp_route_times", (DL_FUNC) &_dodgr_rcpp_route_times, 3}, {NULL, NULL, 0}};
RcppExport void R_init_dodgr(DllInfo *dll) { R_registerRoutines(dll, NULL, CallEntries, NULL, NULL); R_useDynamicSymbols(dll, FALSE);}