I am tasked with designing a flight assistant and one of the problems at hand is finding an optimum route that visits every airport and returns to the airport of origin. In this problem I've taken the airports as nodes and the flights as edges. Since the task is only to visit every airport it doesn't matter if I visit any airport more than once as long as I've visited them all. The graph is directed since a flight need not return to the airport it came from.
Since vertices may be repeated this wouldn't be an actual TSP implementation.
The answer I've found to this online is to make the graph a complete one where if airport A and B weren't connected, the edge connecting them will have the weight of the shortest path from A to B. Solve the TSP there and then in that cycle replace edges that don't actually exist with the actual path they represent.
Problem is that this still isn't enough because since the problem isn't a metric TSP, even if it isn't necessary to repeat vertices the optimum path may require you to repeat them.
For example, take the graph with nodes A, B and C with edges (A,B),(B,A) of weight 1, (A,C),(C,A) also with weight 1 and (B,C),(C,B) with weight 10. In this problem you wouldn't need to repeat vertices but the shortest path would be A-B-A-C-A of weight 4 where A-B-C-A, which doesn't repeat vertices, would have weight 12.
Thanks in advance for the help.