Given a directed weighted graph with n vertex and m arc (n < 1500, m < 5000) and one arc (u, v). And answer the question is how many shortest paths (can begin at any position a and end in b such that a! = b) passes through a given arc.
Example:
n = 4, m = 4
arc (1, 2) with weight is 5
arc (2, 3) with weight is 5
arc (3, 4) with weight is 5
arc (1, 4) with weight is 8
and arc (1, 2).
The answer is 2 because arc (1, 2) in shortest path 1->3 and 1->2.
Dijkstra can solve this problem?