rust_compute_access_multi: Compute cumulative POI accessibility for target nodes in...

View source: R/extendr-wrappers.R

rust_compute_access_multiR Documentation

Compute cumulative POI accessibility for target nodes in parallel.

Description

Compute cumulative POI accessibility for target nodes in parallel.

Usage

rust_compute_access_multi(
  n_nodes,
  head_num,
  to,
  wt,
  target_nodes,
  poi_nodes,
  poi_weights,
  cutoff,
  num_threads
)

Arguments

n_nodes

Total number of nodes.

head_num

CSR head array.

to

CSR destination array.

wt

CSR travel time array (seconds).

target_nodes

Indices of nodes to compute accessibility for (0-indexed).

poi_nodes

Vector of node indices where POIs are situated.

poi_weights

Vector of weights/counts for each POI node.

cutoff

Travel time cutoff in seconds.

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 named list with numeric accessible_count and min_time_s vectors, one element per target node. These give weighted reachable POI counts and travel time in seconds to the nearest reachable POI, respectively.


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