Given a directed adjacency matrix, find the shortest weight path to an exit, however, you must first stop at one of potentially multiple (up to the number of vertices) weighted stops, where each stop can be weighted differently. You only need to stop at one of these stops, which have their locations and weights listed, and can then go to any of the given exits. The required complexity should be O(Edges*log(Verticies))
I am struggling to implement Dijkstra's Algorithm using a min-heap and priority queue, as I am unsure how to evaluate between different stops. I am given a list of the potential stops, and their weights, as well as the locations of all of the exits, and a starting vertex. What would be the steps to figuring out an optimal and efficient solution?