Greetings, Scratcher Change the slider to change the number of vertices, or use the arrow keys if you'd rather do that. Press spacebar to generate a new graph with the current number of vertices. An "old" project of mine that I dusted off and decided to share. I think it was supposed to be a minimum spanning tree where the edges are weighted based on distance, before I knew MSTs were a thing. I hence came up with the algorithm myself, which means that it most likely could be much more optimised.
All code by me, @CasTur