Can someone describe the best possible step-by-step solution for this?
Let = (, ) be a weighted graph with a weight function : →ℝ+
Given a subset of vertices belonging to and vertex belonging to , describe an efficient algorithm that calculates for each vertex in the graph the weight of the lightest path from to itself that passes through at least one of 's vertices.
I'm not quite sure what the best approach might be.