I was given a problem that said:
given a connected directed graph with integer weights (both positive and negative), develop an algorithm that finds the shortest path between two vertices.
I thought I could use a minimum spanning tree algorithm such as kruskal's and then use maybe dijkstra's algorithm to show that since in an MST, every vertex only has one incomming edge, dijkstra's algorithm will work even with negative weights.
does this sound copasteic?
p.s. I'm having trouble proving that an MST contains the shortest path for a directed graph, for every vertex.