Compute reachable walkable network length in parallel for a set of target nodes.
Source:R/extendr-wrappers.R
rust_compute_reachable_length.RdCompute reachable walkable network length in parallel for a set of target nodes.
Usage
rust_compute_reachable_length(
n_nodes,
head_num,
to,
wt,
wl,
target_nodes,
cutoff,
num_threads
)Arguments
- n_nodes
Total number of nodes in graph.
- head_num
CSR head array.
- to
CSR destination nodes.
- wt
CSR travel times (seconds).
- wl
CSR lengths (meters).
- target_nodes
Indices of nodes to compute metric for (0-indexed).
- cutoff
Walk travel-time budget (seconds, default 600.0 = 10 min).
- num_threads
Number of worker threads (1 or 2; values outside this range are clamped to the supported range by the native implementation).