View source: R/extendr-wrappers.R
| rust_compute_reachable_length | R Documentation |
Compute reachable walkable network length in parallel for a set of target nodes.
rust_compute_reachable_length(
n_nodes,
head_num,
to,
wt,
wl,
target_nodes,
cutoff,
num_threads
)
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). |
A numeric vector, one value per target_nodes entry, giving reachable street length in meters within cutoff. Invalid target nodes yield NaN.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.