Consider a weighted directed graph, including V vertices and E edges. I am looking for an algorithm that finds the shortest cycle that passes through only S certain nodes at least once (must pass through all nodes in S), not the other nodes (V-S). The cycle starts and ends from node w in set S.
A similar question is asked in the below link, but in the above question, the cycle is permitted to pass through all S nodes at least once, while in the below link, the cycle must pass through all S nodes exactly once.
What is the algorithm for finding such a cycle?