Reputation: 681
I know that we should duplicate the graph into G1 and G2 and probably use Dijstra's algorithm. I am not sure how i should connect G1 and G2 in a way that i will get the right solution for this question.
Upvotes: 2
Views: 1956
Reputation: 59303
You almost have the answer:
Upvotes: 6