Given a directed, weighted graph (with no negative edges), what is the shortest distance from one node to other that also fulfills the condition that the number of "hops" from one node/vertices to another must be less than a certain value k. (Where k is definitely less than the number of nodes).
One "hop" is defined to be moving from one node to another, and the "hop" value starts at 1 from the source node.
The problem is not as simple as to simply run Dijkstra's algorithm, since this algorithm only gives you the shortest distance without consideration of the number of "hops".
Consideration 1: The shortest path from source to end node may exceed the maximum number of "hops" allowed.
Consideration 2: Augmenting the Dijkstra's algorithm to minimize the number of "hops" will give you a possible answer but it may not be the shortest.
Note that the priority here is still to minimize the shortest distance, just that there is a new condition of the number of "hops" needing to be less than a certain value.