SoftwareX (Jan 2019)

“rsppfp”: An R package for the shortest path problem with forbidden paths

  • Melina Vidoni,
  • Aldo Vecchietti

Journal volume & issue
Vol. 9
pp. 265 – 270

Abstract

Read online

The Shortest Path Problem with Forbidden Paths (SPPFP) is a variant of the original shortest path problem, where the constraints come from a set of forbidden arc sequences that cannot be part of any feasible solution. Though this problem is addressed in the academic literature and has numerous applications, there are no open-source implementations of algorithms that solve it. This article proposes “rsppfp”, an R package that offers functionalities that solve the SPPFP by transforming it into the traditional shortest path problem. Its main strengths are its parallel processing capability, and it is high compatibility with packages for other network research. In this paper, we describe the design and functionality of “rsppfp”, report an evaluation made with different graph structures, and provide guidelines and examples for its use. Keywords: R package, Shortest path, Forbidden paths, Network flows