HanoiGraph - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


GraphTheory[SpecialGraphs]

  

HanoiGraph

  

construct Hanoi graph

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

HanoiGraph(n)

Parameters

n

-

positive integer

Description

• 

HanoiGraph(n) returns the Hanoi graph, an undirected graph whose edges correspond to allowed moves of the tower of Hanoi problem.

• 

The graph has 3n vertices and 323n32 edges.

Examples

withGraphTheory:

withSpecialGraphs:

H3HanoiGraph3

H3Graph 1: an undirected graph with 27 vertices and 39 edges

(1)

Compatibility

• 

The GraphTheory[SpecialGraphs][HanoiGraph] command was introduced in Maple 2025.

• 

For more information on Maple 2025 changes, see Updates in Maple 2025.

See Also

SpecialGraphs

SpecialGraphs[DeBruijnGraph]

 


Download Help Document