I want to calculate the shortest path from source S to sink T.
But the path must pass from node1 and then node2 at least once.
Eg: S->...->node1->....->node2->....->T
And i have to run shortest path algorithm only once (meanly,i am not allowed to calculate the path from s to node1, then node1 to node2 and finally node2 to T in three different shortest path calls)
The first thing that came my mind was TSP since in TSP every nodes are 'must' pass. But complexity of TSP is too high.
Can i modify the TSP in such a manner that i can reduce its complexity to polynomial, or do you have another approaches to the question