rust_compute_reachable_length: Compute reachable walkable network length in parallel for a...

View source: R/extendr-wrappers.R

rust_compute_reachable_lengthR Documentation

Compute reachable walkable network length in parallel for a set of target nodes.

Description

Compute 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).

Value

A numeric vector, one value per target_nodes entry, giving reachable street length in meters within cutoff. Invalid target nodes yield NaN.


walkability documentation built on Nov. 17, 2026, 5:09 p.m.