Spanning tree manipulation and the travelling salesman problem | Synapse