KnightTourGraph[m, n]
gives a Knight's tour graph on an mn chessboard.

Details and OptionsDetails and Options

  • KnightTourGraph[m, n] is a graph with 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.
New in 8
New to Mathematica? Find your learning path »
Have a question? Ask support »