Interstellar puzzle based on graph theory
treksit.com
treksit.com
https://news.ycombinator.com/item?id=12937367
https://news.ycombinator.com/item?id=13116845
https://news.ycombinator.com/item?id=16459508
https://news.ycombinator.com/item?id=24050651
(That's just the ones with multiple comments. The submission history for this looks incredibly spammy.)
Indeed it uses Tronix code (http://pulzed.com/demo/tronix11/) unmodified (in iframe, accessible in https://treksit.com/tron/). Albeit now it's mentioned in credits (https://treksit.com/credits.html) that "web app is based" on it, it'll have been more appropriate to say "web app is using code from".
For anyone interested an algorithm for untangling a planar graph is shown at https://link.springer.com/article/10.1007/s00454-008-9130-6 (preprint: https://arxiv.org/pdf/0709.0170.pdf).
Available for all major platforms and a great way to waste time.
[1] of Putty Fame
Edit: shoot, there's only 20 of them in this. Maybe I should see if any of that old code still runs...
Since the answer criteria is a layout with no edges crossing, the graphs must be planar. There's probably some primitive graph layout algorithm similar to this heuristic (along with a whole bunch of better ones that are less-suited for doing manually!)
https://en.wikipedia.org/wiki/Planarity
https://web.mit.edu/xiphmont/Public/gPlanarity.html
Untangle (in sgt-puzzles)
In most cases I was able to imagine the nodes as lying on a fabric (stiched in the form of a tube) that can be turned inside out.
And there are two "ends" to this.
There is one subset of points that describes the upper opening of the tube, and there is another subset that describes the lower opening.
Our job is to arrange the points such that we are looking down through the upper opening and can see all the way through into the empty space through the lower opening.
In this solved state, the upper opening becomes the outermost permit error of the solved graph, and lower opening becomes the inner most / smallest enclosed space inside the solved graph. Rest of the points are just extra points on the fabric itself that should "stay in view".