Skip to contents

Main functions

dodgr_distances()
Calculate matrix of pair-wise distances between points.
dodgr_dists()
Calculate matrix of pair-wise distances between points.
dodgr_dists_categorical()
Cumulative distances along different edge categories
dodgr_dists_nearest()
Calculate vector of shortest distances from a series of 'from' points to nearest one of series of 'to' points.
dodgr_flows_aggregate()
Aggregate flows throughout a network.
dodgr_flows_disperse()
Aggregate flows dispersed from each point in a network.
dodgr_flows_si()
Aggregate flows throughout a network using a spatial interaction model.
dodgr_isochrones()
Calculate isochrone contours from specified points.
dodgr_isodists()
Calculate isodistance contours from specified points.
dodgr_isoverts()
Calculate isodistance or isochrone contours from specified points.
dodgr_paths()
Calculate lists of pair-wise shortest paths between points.
dodgr_times()
Calculate matrix of pair-wise travel times between points.

Functions to Obtain Graphs

dodgr_streetnet()
Extract a street network in sf-format for a given location.
dodgr_streetnet_sc()
Extract a street network in silicate-format for a given location.
weight_railway()
Weight a network for routing along railways.
weight_streetnet()
Weight a street network according to a specified weighting profile.

Functions to Modify Graphs

dodgr_components()
Identify connected components of graph.
dodgr_contract_graph()
Contract graph to junction vertices only.
dodgr_uncontract_graph()
Re-expand a contracted graph.

Functions to Convert Graphs

dodgr_deduplicate_graph()
Deduplicate edges in a graph
dodgr_to_igraph()
Convert a dodgr graph to an igraph.
dodgr_to_sf()
Convert a dodgr graph into an equivalent sf object.
dodgr_to_sfc()
Convert a dodgr graph into an equivalent sf::sfc object.
dodgr_to_tidygraph()
Convert a dodgr graph to an tidygraph.
igraph_to_dodgr()
Convert a igraph network to an equivalent dodgr representation.

Graph Centrality

dodgr_centrality()
Calculate betweenness centrality for a 'dodgr' network.
estimate_centrality_threshold()
Estimate a value for the 'dist_threshold' parameter of the dodgr_centrality function.
estimate_centrality_time()
Estimate time required for a planned centrality calculation.

Matching Points to Graphs

add_nodes_to_graph()
Insert new nodes into a graph, breaking edges at point of nearest intersection.
match_points_to_graph()
Alias for match_pts_to_graph
match_points_to_verts()
Alias for match_pts_to_verts
match_pts_to_graph()
Match spatial points to the edges of a spatial graph.
match_pts_to_verts()
Match spatial points to the vertices of a spatial graph.

Miscellaneous Functions

compare_heaps()
Compare timings of different sort heaps for a given input graph.
dodgr_flowmap()
Create a map of dodgr flows.
dodgr_full_cycles()
Calculate fundamental cycles on a FULL (that is, non-contracted) graph.
dodgr_fundamental_cycles()
Calculate fundamental cycles in a graph.
dodgr_insert_vertex()
Insert a new node or vertex into a network
dodgr_sample()
Sample a random but connected sub-component of a graph
dodgr_sflines_to_poly()
Convert sf LINESTRING objects to POLYGON objects representing all fundamental cycles within the LINESTRING objects.
dodgr_vertices()
Extract vertices of graph, including spatial coordinates if included.
merge_directed_graph()
Merge directed edges into equivalent undirected edges.
summary(<dodgr_dists_categorical>)
Transform a result from dodgr_dists_categorical to summary statistics
write_dodgr_wt_profile()
Write dodgr weighting profiles to local file.

Save, Load, and Caching

clear_dodgr_cache()
Remove cached versions of dodgr graphs.
dodgr_cache_off()
Turn off all dodgr caching in current session.
dodgr_cache_on()
Turn on all dodgr caching in current session.
dodgr_load_streetnet()
Load a street network previously saved with dodgr_save_streetnet.
dodgr_save_streetnet()
Save a weighted streetnet to a local file

Package Data

hampi
Sample street network from Hampi, India.
os_roads_bristol
Sample street network from Bristol, U.K.
weighting_profiles
Weighting profiles used to route different modes of transport.

The ‘dodgr’ package

dodgr-package dodgr
Distances On Directed GRaphs ("dodgr")