rs_k_shortest_paths: Yen's k loopless shortest paths. Returns a list with 'paths'...

View source: R/extendr-wrappers.R

rs_k_shortest_pathsR Documentation

Yen's k loopless shortest paths. Returns a list with paths (a list of 0-based node-index vectors) and costs (numeric).

Description

Yen's k loopless shortest paths. Returns a list with paths (a list of 0-based node-index vectors) and costs (numeric).

Usage

rs_k_shortest_paths(from, to, weight, n_nodes, source, target, k)

osmnxr documentation built on Oct. 20, 2026, 1:07 a.m.