|
SOLUTIONS
|
Mathematica
>
Mathematics and Algorithms
>
Graphs & Networks
>
Constructing Graphs
>
KnightTourGraph
BUILT-IN MATHEMATICA SYMBOL
KnightTourGraph
KnightTourGraph[m, n]
gives a Knight's tour graph on an m
n chessboard.
Details and OptionsDetails and Options
- KnightTourGraph[m, n] is a graph with
vertices corresponding to an m
n chessboard and with edges corresponding to all legal moves for a knight on that chessboard. - KnightTourGraph takes the same options as Graph.
ExamplesExamplesopen allclose all
Basic Examples (1)Basic Examples (1)
The first few knight's tour graphs on differently sized chessboards:
| In[1]:= |
| Out[1]= | ![]() |
New in 8
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »

