Shortest two disjoint paths between two specified vertices
问题 Given a weighted undirected graph G and two vertices a, b , we want to find two paths a -> b and b -> a such that they don't share any edge, and such that the sum of weights of edges in both paths is minimum. There can be up to 1,000 vertices, and up to 10,000 edges. I had initially tried to come up with a dynamic programming approach, but couldn't find such. Any ideas/suggestions would be extremely appreciated. 回答1: This is Minimum-cost flow problem. You can assign flow capacity for each