using Dijkstra algorithm to find shortest path in an adjacency matrix
问题 I have a homework assignment where I'm supposed to find the cheapest airfares between two cities, taking into account layovers. We are required to use an adjacency matrix along with Dijkstra's algorithm. I'm looking at the algorithm in my book, as well as wikipedia (among other sites). I'm confused because in the parameter for the algorithm it has: DijkstraAlgorithm(weighted simple digraph, vertex first) What I'm having a hard time understanding- especially when looking at the entire