How michaelstergiaris/dijkstra_implementation_cpp works
This small C++ program demonstrates weighted-graph shortest paths: its entry point builds a sample graph, runs Dijkstra from node 0, and prints distances and paths. The graph structure and function declarations are in Dijkstra.h; Dijkstra.cpp implements graph setup, the algorithm, and result formatting. The entry point orchestrates these calls, while the result printer uses the recursive path formatter. The map reflects only the supplied excerpts; no README or additional runtime subsystems were present.
Main entry points: Software_task.cpp Demo entry point · Dijkstra.cpp Result formatter · Dijkstra.h Graph structure
Components 8
Other components
- User
- Demo entry point
Software_task.cpp - Graph structure
Dijkstra.h - Graph setup
Dijkstra.cpp - Dijkstra algorithm
Dijkstra.cpp - Result formatter
Dijkstra.cpp - Path formatter
Dijkstra.cpp - Standard output
Connections 9
- Demo entry point → Graph setup: initializes and adds edges
Software_task.cpp - Graph setup → Graph structure: writes graph
Dijkstra.cpp - Demo entry point → Dijkstra algorithm: runs
Software_task.cpp - Dijkstra algorithm → Graph structure: reads graph
Dijkstra.cpp - Demo entry point → Result formatter: prints results
Software_task.cpp - Result formatter → Path formatter: prints paths with
Dijkstra.cpp - Result formatter → Standard output: writes output
Dijkstra.cpp - Path formatter → Standard output: writes path
Dijkstra.cpp - User → Demo entry point: runs