A tour of general Hanoi graphs

Daniel Berend, Liat Cohen, Omrit Filtser

Research output: Contribution to journalArticlepeer-review


The Tower of Hanoi puzzle has fascinated researchers in mathematics and theoretical computer science for over a hundred years. Many variants of the classical puzzle have been posed, such as allowing more than 3 pegs, and adding restrictions on the possible moves between the pegs. It is natural to view the pegs and allowed moves by means of a graph. The pegs are represented by the vertices of the graph, and the allowed moves by the edges. For each n, this graph yields a graph on the set of all legal configurations of n disks. Thus, the questions about the original puzzle may be reformulated as questions about connectivity and shortest paths in the graph of all configurations. Moreover, it was shown that classical Hanoi graphs are related to several interesting and useful structures such as the Sierpiński gasket and Gray codes, and thus several properties of these graphs were studied, including Hamiltonicity and planarity. In this paper we study these properties, and several others – chromatic number, clique number, and girth – for general Hanoi graphs.

Original languageEnglish
Article number114289
Pages (from-to)114289
Number of pages1
JournalTheoretical Computer Science
StatePublished - 1 Feb 2024

Bibliographical note

DBLP License: DBLP's bibliographic metadata records provided through http://dblp.org/ are distributed under a Creative Commons CC0 1.0 Universal Public Domain Dedication. Although the bibliographic metadata records are provided consistent with CC0 1.0 Dedication, the content described by the metadata records is not. Content may be subject to copyright, rights of privacy, rights of publicity and other restrictions.


  • Hamiltonicity
  • Planarity
  • Towers of Hanoi


Dive into the research topics of 'A tour of general Hanoi graphs'. Together they form a unique fingerprint.

Cite this