KnightTourGraph

KnightTourGraph[m,n]

gives a Knight's tour graph on an mn chessboard.

Details and Options

  • KnightTourGraph[m,n] is a graph with m n vertices corresponding to an mn chessboard and with edges corresponding to all legal moves for a knight on that chessboard.
  • KnightTourGraph takes the same options as Graph.

Examples

open allclose all

Basic Examples  (1)

The first few knight's tour graphs on differently sized chessboards:

In[1]:=
Click for copyable input
Out[1]=

Options  (79)

Applications  (6)

Properties & Relations  (3)

Possible Issues  (1)

Neat Examples  (2)

See Also

Graph  GraphData  GridGraph

Introduced in 2010
(8.0)