Please use this identifier to cite or link to this item: http://hdl.handle.net/20.500.11960/4823
Title: A contribution of shortest paths algorithms to the networkX python library
Authors: Cruz, António Miguel
Carvalho, Rui
Costa, André
Pinto, Luís
Dias, Luís
Cerqueira, Paulino
Machado, Rodrigo
Batista, Tiago
Castro, Pedro
Ribeiro, Jorge
Keywords: Shortest path
NetworkX
A-Star
IDA*
D* Lite
SMA*
Bidirectional A*
RTA*
Issue Date: 25-Jul-2025
Citation: Cruz, M., Carvalho, R., Costa, A., Pinto, L., Dias, L., Cerqueira, P., Machado, R., Batista, T., Castro, P., & Ribeiro, J. (2025). A contribution of shortest paths algorithms to the networkX python library. Applied Sciences, 15(15), Artigo e8273. https://doi.org/10.3390/app15158273
Abstract: NetworkX is a free Python library for graphs and networks and is used in many applications and projects to find the shortest path in path planning scenarios. For dense graphs, the library provides the Floyd–Warshall algorithm for shortest paths and the A* (“A-Star”) algorithm for shortest paths and path lengths. However, several extensions have been proposed to improve the A*, but they are not included in the library. In this context, this paper presents a set of implementations improving the A*, such as the IDA*, D* Lite, SMA*, Bidirectional A* and RTA*. The goal or challenge is to address the limitations of the A* in specific scenarios, such as searching for an optimal path repeatedly or when confronted with memory limitations, as exemplified by the NetworkX library. To do this, we first review the literature of the usage and general application of NetworkX in different domains of applicability and then explore their usage in a shortest path context. By reviewing and validating the usage of A* and extensions in Python using the NetworkX framework, the implementations were submitted to the network environment validation and passed the tests. We have also done the benchmarking of the A*, comparing it with the new ones, and concluded the better efficiency of the A* extensions in tri-objective scenario parameters (length, cost and toll). Despite the extensive utilisation of A* and its notable efficacy in identifying optimal paths, its performance is suboptimal in specific scenarios, such as when confronted with memory constraints and dynamic environments. Almost every algorithm outperformed or matched the A* in the fields that were developed to have an advantage, demonstrating the quality and robustness of the implemented algorithms. As a contribution and to foster further research in this shortest path specific context field, the dataset and Python code of the algorithms are available in a GitHub opensource repository.
URI: http://hdl.handle.net/20.500.11960/4823
ISSN: 2076-3417
Appears in Collections:ADiT-Lab - Publicações indexadas à WoS/Scopus
ESTG - Publicações indexadas à WoS/Scopus

Files in This Item:
File Description SizeFormat 
A_contribution_of_shortest_ptahs_algorithms_the_the_networkx_python_library.pdf5.45 MBAdobe PDFView/Open


Items in DSpace are protected by copyright, with all rights reserved, unless otherwise indicated.