In reply to @mathforge

@mathforge Python's itertools.permutations has a lovely algorithm for generating tours of every permutation like this. If you haven't seen it, there's an explanation on stackoverflow: stackoverflow.com/questions/2565…

3 favourites 2 retweets

View this tweet on twitter.com

This tweet as JSON