TransWikia.com

How do I make Hanoi graphs using TikZ?

TeX - LaTeX Asked by kevs924 on December 5, 2020

I have a feeling that it is possible to do using tkz-graph, but I don’t know how it works. I tried searching for high-resolution images in Google, and no such image showed up.

I need to make the graph with varying n so that the states of the Tower of Hanoi will be evident. A sample of the graph is from WolframAlpha.

Can you help me do it, please?

One Answer

These are very similar to Sierpinski triangles (just without the fills). I'd start with one of the solutions at How to create a Sierpinski triangle in LaTeX? and make the minor adjustments necessary to get your desired result.

Correct answer by Don Hosek on December 5, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP