I've been reading about different algorightms for solving the traveling salesman problem but can`t seem to find a example where you do not wish to visit all the nods in the graph. In example, lets say I have a graph made up of the nods n1,n2,n3,n4,n5,n6. In the classic traveling salesman problem I would want to visit all the nods in the shortest time possible. But what if I wish to leave from n1 and visit n3 n5 and n6 only. I can pass through the other nods if I have to but the only ones I absolutely have to visit are n1 n3 n5 n6 and back to n1. This means that what I'm looking for is the shortest path from n1 to n1 that passes through these 3 points. Any hint on which algorithm to look at would be welcome.
Thank you
Samuel Benitah