TOPICS
Search

Giraffe Graph


GiraffeGraphs

A giraffe graph is a graph formed by all possible moves of a hypothetical chess piece called a "giraffe" which moves analogously to a knight except that it is restricted to moves that change by one square along one axis of the board and four squares along the other. To form the graph, each chessboard square is considered a vertex, and edges join vertices related by allowable giraffe moves. It is therefore a (1,4)-leaper graph, as well as a Euclidean distance graph with distance sqrt(17).

Giraffe graphs are bicolorable, bipartite, class 1, perfect, triangle-free, and weakly perfect.

The square (n×n) giraffe graph is connected for n>=8.

The n×n giraffe graph is traceable for n=1, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, and 20, and untraceable for n=11. Waldmann reports a computer-assisted proof, with a proof certificate checked by a separate verifier, that the 11×11 giraffe graph has no Hamiltonian path.

The smallest nontrivial square board allowing a closed tour for the giraffe (i.e., the giraffe graph is Hamiltonian) is the 10×10, first solved by A. H. Frost in 1886 as reported by Jelliss (2019). For n<=20, the square board's giraffe graph is Hamiltonian for n=1, 10, 12, 14, 16, 18, and 20.

Precomputed properties of giraffe graphs are implemented in the Wolfram Language as GraphData[{"Giraffe", {m, n}}].


See also

Antelope Graph, Camel Graph, Fairy Chess, Fiveleaper Graph, Knight Graph, Leaper Graph, Zebra Graph

Explore with Wolfram|Alpha

WolframAlpha

More things to try:

References

House of Graphs. "5x5 Giraffe Graph." https://houseofgraphs.org/graphs/57329.Jelliss, G. "The Big Beasts: Giraffe {1, 4}." §10.33 in Knight's Tour Notes. 2019. https://www.mayhematics.com/ktn/KTN10_Leapers.pdf.Knuth, D. E. "Hamiltonian Paths and Cycles." Pre-Fascicle 8A of The Art of Computer Programming, Vol. 4. Draft, p. 17 and Exercise 149, Dec. 4, 2025. https://www-cs-faculty.stanford.edu/~knuth/fasc8a.pdf.Kraïtchik, M. Le Problème du Cavalier. Paris, France: Gauthiers-Villars, 1927.Waldmann, J. "The (1,4) Leaper Graph on 11×11 Has No Hamiltonian Path." https://www.imn.htwk-leipzig.de/~waldmann/sat/leaper/README.html.

Referenced on Wolfram|Alpha

Giraffe Graph

Cite this as:

Weisstein, Eric W. "Giraffe Graph." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/GiraffeGraph.html

Subject classifications