get_paths: Get paths

Description Usage Arguments Value Examples

View source: R/get_paths.R

Description

Wrapper function for dodgr function 'R/dodgr_paths.R'

Usage

1
get_paths(graph, demand)

Arguments

graph

Graph object created with configure_graph() function

demand

Demand object created with configure_demand() function

Value

List of list of paths tracing all connections between nodes such that if x <- dodgr_paths (graph, from, to), then the path between from[i] and to[j] is x [[i]] [[j]].

Examples

1
2
3
4
5
flist <- configure_graph(sioux_network,sioux_zones,use_cost_col=TRUE)
graph <- flist[[1]]
zones <- flist[[2]]
demand <- configure_demand(sioux_demand,zones)
paths <- get_paths(graph,demand)

douglascm/trafficr documentation built on March 13, 2020, 11:44 a.m.