A Performance Comparison of Shortest Path Algorithms in Directed Graphs

This study examines the performance characteristics of four commonly used short-path algorithms, including Dijkstra, Bellman–Ford, Floyd–Warshall, and Dantzig, on randomly generated directed graphs. We analyze theoretical computational complexity and empirical execution time using a custom-built tes...

Full description

Saved in:
Bibliographic Details
Published inEngineering proceedings Vol. 100; no. 1; p. 31
Main Authors Fatima Sapundzhi, Kristiyan Danev, Antonina Ivanova, Metodi Popstoilov, Slavi Georgiev
Format Journal Article
LanguageEnglish
Published MDPI AG 01.07.2025
Subjects
Online AccessGet full text
ISSN2673-4591
DOI10.3390/engproc2025100031

Cover

Abstract This study examines the performance characteristics of four commonly used short-path algorithms, including Dijkstra, Bellman–Ford, Floyd–Warshall, and Dantzig, on randomly generated directed graphs. We analyze theoretical computational complexity and empirical execution time using a custom-built testing framework. The experimental results demonstrate significant performance differences across varying graph densities and sizes, with Dijkstra’s algorithm showing superior performance for sparse graphs while Floyd–Warshall and Dantzig provide more consistent performance for dense graphs. Time complexity analysis confirms the theoretical expectations: Dijkstra’s algorithm performs best on sparse graphs with O (E + V log V) complexity, Bellman–Ford shows O (V · E) complexity suitable for graphs with negative edges, while Floyd–Warshall and Dantzig both demonstrate O(V3) complexity that becomes efficient for dense graphs. This research provides practical insights for algorithm selection based on specific graph properties, guiding developers and researchers in choosing the most efficient algorithm for their particular graph structure requirements.
AbstractList This study examines the performance characteristics of four commonly used short-path algorithms, including Dijkstra, Bellman–Ford, Floyd–Warshall, and Dantzig, on randomly generated directed graphs. We analyze theoretical computational complexity and empirical execution time using a custom-built testing framework. The experimental results demonstrate significant performance differences across varying graph densities and sizes, with Dijkstra’s algorithm showing superior performance for sparse graphs while Floyd–Warshall and Dantzig provide more consistent performance for dense graphs. Time complexity analysis confirms the theoretical expectations: Dijkstra’s algorithm performs best on sparse graphs with O (E + V log V) complexity, Bellman–Ford shows O (V · E) complexity suitable for graphs with negative edges, while Floyd–Warshall and Dantzig both demonstrate O(V3) complexity that becomes efficient for dense graphs. This research provides practical insights for algorithm selection based on specific graph properties, guiding developers and researchers in choosing the most efficient algorithm for their particular graph structure requirements.
Author Slavi Georgiev
Fatima Sapundzhi
Metodi Popstoilov
Kristiyan Danev
Antonina Ivanova
Author_xml – sequence: 1
  fullname: Fatima Sapundzhi
  organization: Department of Communication and Computer Engineering, Faculty of Engineering, South-West University “Neofit Rilski”, 66 Ivan Myhailov Str., 2700 Blagoevgrad, Bulgaria
– sequence: 2
  fullname: Kristiyan Danev
  organization: Department of Computer Science, Faculty of Social, Business and Computer Sciences, Varna Free University “Chernorizets Hrabar”, 84 Yanko Slavchev Str., Chaika Resort, 9007 Varna, Bulgaria
– sequence: 3
  fullname: Antonina Ivanova
  organization: Department of Computer Science, Faculty of Social, Business and Computer Sciences, Varna Free University “Chernorizets Hrabar”, 84 Yanko Slavchev Str., Chaika Resort, 9007 Varna, Bulgaria
– sequence: 4
  fullname: Metodi Popstoilov
  organization: Department of Communication and Computer Engineering, Faculty of Engineering, South-West University “Neofit Rilski”, 66 Ivan Myhailov Str., 2700 Blagoevgrad, Bulgaria
– sequence: 5
  fullname: Slavi Georgiev
  organization: Department of Applied Mathematics and Statistics, Faculty of Natural Sciences and Education, University of Ruse, 8 Studentska Str., 7004 Ruse, Bulgaria
BookMark eNplkM1Kw0AUhQdRsNY-gLt5gejM3EwysyxV20LBgroON_PTpCSZMIlI395oxY2rA985fItzQy670DlC7ji7B9DswXWHPgYjmJCcMQb8gsxElkOSSs2vyWIYjhOeSpECzMh6Sfcu-hBb7Iyjq9D2GOshdDR4-lqFOLphpHscK7psDiHWY9UOtO7oYx2dGZ2l64h9NdySK4_N4Ba_OSfvz09vq02ye1lvV8tdYrniPOEIQjot0RomjAFblkopZqWXHBRKaVLrde6MKHOfTkuQmSo1oPepFWUGc7I9e23AY9HHusV4KgLWxQ8I8VBgHGvTuCLPjHZKaa9yl4KUSmiXZylHq7iFzE8ucXZ9dD2ePrFp_oScFd9vFv_ehC8VcWy_
ContentType Journal Article
DBID ADTOC
UNPAY
DOA
DOI 10.3390/engproc2025100031
DatabaseName Unpaywall for CDI: Periodical Content
Unpaywall
DOAJ Directory of Open Access Journals
DatabaseTitleList
Database_xml – sequence: 1
  dbid: DOA
  name: DOAJ Directory of Open Access Journals
  url: https://www.doaj.org/
  sourceTypes: Open Website
– sequence: 2
  dbid: UNPAY
  name: Unpaywall
  url: https://proxy.k.utb.cz/login?url=https://unpaywall.org/
  sourceTypes: Open Access Repository
DeliveryMethod fulltext_linktorsrc
EISSN 2673-4591
ExternalDocumentID oai_doaj_org_article_76c9e889f87e4355829e7641ad81d36f
10.3390/engproc2025100031
GroupedDBID ADTOC
UNPAY
AADQD
AFZYC
ALMA_UNASSIGNED_HOLDINGS
ARCSS
GROUPED_DOAJ
OK1
ID FETCH-LOGICAL-d1811-1a325e95adc02cc3dbb8880d5f5138a55c4df97ec2b7f45e93568b93aff4d2b63
IEDL.DBID DOA
IngestDate Fri Oct 03 12:52:04 EDT 2025
Thu Aug 28 11:19:17 EDT 2025
IsDoiOpenAccess true
IsOpenAccess true
IsPeerReviewed true
IsScholarly true
Issue 1
Language English
License cc-by
LinkModel DirectLink
MergedId FETCHMERGED-LOGICAL-d1811-1a325e95adc02cc3dbb8880d5f5138a55c4df97ec2b7f45e93568b93aff4d2b63
OpenAccessLink https://doaj.org/article/76c9e889f87e4355829e7641ad81d36f
ParticipantIDs doaj_primary_oai_doaj_org_article_76c9e889f87e4355829e7641ad81d36f
unpaywall_primary_10_3390_engproc2025100031
PublicationCentury 2000
PublicationDate 2025-07-01
PublicationDateYYYYMMDD 2025-07-01
PublicationDate_xml – month: 07
  year: 2025
  text: 2025-07-01
  day: 01
PublicationDecade 2020
PublicationTitle Engineering proceedings
PublicationYear 2025
Publisher MDPI AG
Publisher_xml – name: MDPI AG
SSID ssj0002512433
Score 2.298534
Snippet This study examines the performance characteristics of four commonly used short-path algorithms, including Dijkstra, Bellman–Ford, Floyd–Warshall, and Dantzig,...
SourceID doaj
unpaywall
SourceType Open Website
Open Access Repository
StartPage 31
SubjectTerms Bellman–Ford
Dantzig
Dijkstra
Floyd–Warshall
graph theory
shortest path algorithms
SummonAdditionalLinks – databaseName: Unpaywall
  dbid: UNPAY
  link: http://utb.summon.serialssolutions.com/2.0.0/link/0/eLvHCXMwnV3PT9swFLZQOTAOY2hDlB-TD9xQaPw7Pk0FQdEkqkpQiZ0iO7ZLRUmrNh3a_vo9N6Gg7TSOiZ4iK89-7_ucL58ROqGBEml4VDUCN-Fc0cQU3CVBS5VaIgVbmVXf9OX1kH-_F_fNhtuikVUCFR-vijSViiVcaAJrO-2QDiOdmQvffjY7SdD5KM-g9gJl35QCsHgLbQ77g-6P-vMlAz7f8eUotgIasXQkAKQx599GW8tyZn49m8nkTUe52kH5y1hqIcnj2bKyZ8Xvv2wa3z_YT-hjAzZxt54du2jDl59Rr4sHr38L4Iv1QYR4GvDtQxTfLio8AGSIu5PRdD6uHp4WeFziujp6h3vR5HrxBQ2vLu8urpPmOIXEQRsnCTGMCq-FcUVKi4I5a4H-pk4EQVhmhIAcBa18Qa0KHCKZkJnVzITAHbWS7aFWOS39PsJKa6soszz1jvvgNPfROotYwGcQLNvoPL7jfFY7ZuTRw3p1Yzof5c2SyJUstM8yHTLleXR5p9oryYlxgKGZDG10us7Q-knAWWJa83_SevBf0YfoQ7yodbdHqFXNl_4Y0EVlvzZT6A94pcry
  priority: 102
  providerName: Unpaywall
Title A Performance Comparison of Shortest Path Algorithms in Directed Graphs
URI https://www.mdpi.com/2673-4591/100/1/31/pdf?version=1752482120
https://doaj.org/article/76c9e889f87e4355829e7641ad81d36f
UnpaywallVersion publishedVersion
Volume 100
hasFullText 1
inHoldings 1
isFullTextHit
isPrint
journalDatabaseRights – providerCode: PRVAON
  databaseName: DOAJ Directory of Open Access Journals
  databaseCode: DOA
  dateStart: 20200101
  customDbUrl:
  isFulltext: true
  eissn: 2673-4591
  dateEnd: 99991231
  titleUrlDefault: https://www.doaj.org/
  omitProxy: true
  ssIdentifier: ssj0002512433
  providerName: Directory of Open Access Journals
link http://utb.summon.serialssolutions.com/2.0.0/link/0/eLvHCXMwrV3PS8MwGA0yD-pBFBV_jhy8SVmbn82xDrchOAY6mKeSNMkmzG64DfG_N99a5sCDF69NSMujfN975PE-hG6JJ4nQDFyNQZswJkmkC2Yjr4SMTSI4XYdVP_VFb8geR3y0NeoLPGFVPHAFXEuKQrk0VT6VjkEWOFFOCpZoG5gWFR6qb5yqLTEFNRi6NqO0usakQde3XDmGlkBgCYRAUof0H6C9VTnXX596Ot3qLJ0jdFhTQpxVn3KMdlx5groZHvx4-nF7My4Qzzx-noBFdrHEg8DfcDYdz4LEn7wv8FuJqxrmLO5CFPXiFA07Dy_tXlQPPYhsaLZJlGhKuFNc2yImRUGtMUGkxpZ7ntBUcx6Q9Eq6ghjpWdhJuUiNotp7ZokR9Aw1ylnpzhGWShlJqGGxs8x5q5iDgKvEBBYVNosLdA8I5PMq1yKHpOn1g4B_XuOf_4X_Bbrb4Lc5KSgLAD3_Bfrlf7zyCu3DiZVp9ho1lh8rdxOowdI0139BE-0O-4Ps9Rtl_bbV
linkProvider Directory of Open Access Journals
linkToUnpaywall http://utb.summon.serialssolutions.com/2.0.0/link/0/eLvHCXMwnV3PT9swFLZQOTAOY2hDlB-TD9xQaPw7Pk0FQdEkqkpQiZ0iO7ZLRUmrNh3a_vo9N6Gg7TSOiZ4iK89-7_ucL58ROqGBEml4VDUCN-Fc0cQU3CVBS5VaIgVbmVXf9OX1kH-_F_fNhtuikVUCFR-vijSViiVcaAJrO-2QDiOdmQvffjY7SdD5KM-g9gJl35QCsHgLbQ77g-6P-vMlAz7f8eUotgIasXQkAKQx599GW8tyZn49m8nkTUe52kH5y1hqIcnj2bKyZ8Xvv2wa3z_YT-hjAzZxt54du2jDl59Rr4sHr38L4Iv1QYR4GvDtQxTfLio8AGSIu5PRdD6uHp4WeFziujp6h3vR5HrxBQ2vLu8urpPmOIXEQRsnCTGMCq-FcUVKi4I5a4H-pk4EQVhmhIAcBa18Qa0KHCKZkJnVzITAHbWS7aFWOS39PsJKa6soszz1jvvgNPfROotYwGcQLNvoPL7jfFY7ZuTRw3p1Yzof5c2SyJUstM8yHTLleXR5p9oryYlxgKGZDG10us7Q-knAWWJa83_SevBf0YfoQ7yodbdHqFXNl_4Y0EVlvzZT6A94pcry
openUrl ctx_ver=Z39.88-2004&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rfr_id=info%3Asid%2Fsummon.serialssolutions.com&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=article&rft.atitle=A+Performance+Comparison+of+Shortest+Path+Algorithms+in+Directed+Graphs&rft.jtitle=Engineering+proceedings&rft.au=Fatima+Sapundzhi&rft.au=Kristiyan+Danev&rft.au=Antonina+Ivanova&rft.au=Metodi+Popstoilov&rft.date=2025-07-01&rft.pub=MDPI+AG&rft.eissn=2673-4591&rft.volume=100&rft.issue=1&rft.spage=31&rft_id=info:doi/10.3390%2Fengproc2025100031&rft.externalDBID=DOA&rft.externalDocID=oai_doaj_org_article_76c9e889f87e4355829e7641ad81d36f