Skip to content

Instantly share code, notes, and snippets.

@peteristhegreat
Created October 8, 2026 21:42
Show Gist options
  • Select an option

  • Save peteristhegreat/a1ff8119348347ee92f955ef2eb29153 to your computer and use it in GitHub Desktop.

Select an option

Save peteristhegreat/a1ff8119348347ee92f955ef2eb29153 to your computer and use it in GitHub Desktop.
Graph Thickness, K_10 complete graph, Beautiful, Graceful, Regular

This is a spin off project of the 10 room maze

https://gist.github.com/peteristhegreat/63c2527b222208e2527ca5fd5671c358

A TUI interface is okay. What about 3D? or even 2D or 2.5D or 4D?

How do you even draw a complete graph? Where every node has 9 exits and a loop back exit?

It turns out graph theory covers this!

https://mathworld.wolfram.com/GraphThickness.html

If you want to slow down an LLM, try this prompt:

From: https://mathworld.wolfram.com/GraphThickness.html The thickness of a complete graph K_n satisfies t(K_n)=|(n+7)/6| (2) except for t(K_9)=t(K_(10))=3 (Vasak 1976, Alekseev and Gonchakov 1976, Beineke 1997) What does this t(K_(10))=3 graph look like? What's the most regular spacing/pleasing/graceful graph that can be made illustrating t(K_10)? Ideally with arcs and straight lines between nodes, no intersecting lines, arranged in a planned way (fibonacci spacing or hex lattice spacing, etc) instead of just optimized. Also for each layer shown in a set of 3, the relative placement of the nodes to each other should be consistent.

A longer conversation with ChatGPT ended up a similar tree.

It produced this:

image image image

And asking Claude produced some other interesting ones:

image image image image image

I'll try to drop in the python solvers sooner or later that were produced.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment