Learn R Programming

cppRouting (version 3.1)

Algorithms for Routing and Solving the Traffic Assignment Problem

Description

Calculation of distances, shortest paths and isochrones on weighted graphs using several variants of Dijkstra algorithm. Proposed algorithms are unidirectional Dijkstra (Dijkstra, E. W. (1959) ), bidirectional Dijkstra (Goldberg, Andrew & Fonseca F. Werneck, Renato (2005) ), A* search (P. E. Hart, N. J. Nilsson et B. Raphael (1968) ), new bidirectional A* (Pijls & Post (2009) ), Contraction hierarchies (R. Geisberger, P. Sanders, D. Schultes and D. Delling (2008) ), PHAST (D. Delling, A.Goldberg, A. Nowatzyk, R. Werneck (2011) ). Algorithms for solving the traffic assignment problem are All-or-Nothing assignment, Method of Successive Averages, Frank-Wolfe algorithm (M. Fukushima (1984) ), Conjugate and Bi-Conjugate Frank-Wolfe algorithms (M. Mitradjieva, P. O. Lindberg (2012) ), Algorithm-B (R. B. Dial (2006) ).

Copy Link

Version

Install

install.packages('cppRouting')

Monthly Downloads

739

Version

3.1

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Vincent Larmet

Last Published

December 1st, 2022

Functions in cppRouting (3.1)

to_df

Convert cppRouting graph to data.frame
makegraph

Construct graph
get_path_pair

Compute shortest path between origin and destination nodes.
get_distance_pair

Compute shortest distance between origin and destination nodes.
get_isochrone

Compute isochrones/isodistances from nodes.
get_multi_paths

Compute all shortest paths between origin and destination nodes.
cpp_simplify

Reduce the number of edges by removing non-intersection nodes, duplicated edges and isolated loops in the graph.
assign_traffic

Algorithms for solving the Traffic Assignment Problem (TAP).
get_detour

Return the nodes that can be reached in a detour time set around the shortest path
cpp_contract

Contraction hierarchies algorithm
get_aon

Given an origin-destination matrix, compute All-or-Nothing assignment.
get_distance_matrix

Compute all shortest distance between origin and destination nodes.