TSP using A* implemented in Python