This study aims to determine the optimal freight route using a Python-based implementation of Dijkstra Algorithm in a weighted graph network, with a case study of Banjarnegara-Semarang. The network is modeled as a directed graph where nodes represent regions and edges represent distances (km). The dataset consists of 19 nodes and 38 edges. Computation is performed using Python (NetworkX) to obtain the shortest path efficiently. The results show that the optimal route is Banjarnegara–Wonosobo-Kendal-Semarang with a total distance of 146.20 km. This approach is faster and more accurate than manual calculations and supports efficient logistics decision-making.
Copyrights © 2026