Shortest Paths Between Points in Grids

Shortest paths between points in grids. Optional barriers and custom transition functions. Applications regarding planet Earth, as well as generally spheres and planes. Optimized for computational performance, customizability, and user friendliness. Graph-theoretical implementation tailored to gridded data. Currently focused on Dijkstra's (1959) algorithm. Future updates broaden the scope to other least cost path algorithms and to centrality measures.


The package computes shortest paths between points in grids. It can take barriers and custom transition functions into account. Apart from applications regarding planet Earth, spaths can compute shortest paths generally on spheres and planes. The package is optimized for computational performance, customizability, and user friendliness. It comes with its own graph-theoretical implementation tailored to gridded data.

Install the package via devtools::install_github("cdueben/spaths", build_vignettes = T) and consult the vignette with vignette("spaths_introduction", "spaths") for an introduction.

Extensions to this package are certainly welcome. You can either suggest modifications to spaths by sending me an email or submitting a pull request, or you can build a package that calls spaths.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("spaths")

1.2.0 by Christian Düben, 2 years ago


https://github.com/cdueben/spaths


Report a bug at https://github.com/cdueben/spaths/issues


Browse source code at https://github.com/cran/spaths


Authors: Christian Düben [aut, cre]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports base, Rcpp, data.table, parallel, stats, utils

Suggests terra, knitr, rmarkdown, testthat

Linking to Rcpp


See at CRAN