Metraipolis › archive › dc_a05b7c81121b
Knight's graph — Wikipedia (en)
- Source
- Wikipedia (en)
- Original
- https://en.wikipedia.org/wiki/Knight%27s_graph
- License (as archived)
- CC-BY-SA-4.0
- Archived
- 2026-10-07T23:23:02.890Z
- SHA-256 of the archived text
acc3f253d0ac8b0440639252dd6ae51760e646d7e617c07ca6623b000b0cde39- Stable URL of this page
https://metraipolis.com/documento/dc_a05b7c81121b
How to cite
Knight's graph — Wikipedia (en) — Wikipedia (en), https://en.wikipedia.org/wiki/Knight%27s_graph (CC-BY-SA-4.0); archived copy: https://metraipolis.com/documento/dc_a05b7c81121b (Metraipolis archive dc_a05b7c81121b, sha256 acc3f253d0ac8b0440639252dd6ae51760e646d7e617c07ca6623b000b0cde39)
BibTeX
@misc{dca05b7c81121b,
title = {Knight's graph — Wikipedia (en)},
howpublished = {Wikipedia (en)},
url = {https://en.wikipedia.org/wiki/Knight%27s_graph},
note = {License CC-BY-SA-4.0; archived copy https://metraipolis.com/documento/dc_a05b7c81121b; sha256 acc3f253d0ac8b0440639252dd6ae51760e646d7e617c07ca6623b000b0cde39},
year = {2026}
}Archived text
Reproduced under CC-BY-SA-4.0. Attribution: Wikipedia (en), https://en.wikipedia.org/wiki/Knight%27s_graph. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
In graph theory, a knight's graph, or a knight's tour graph, is a graph that represents all legal moves of the knight chess piece on a chessboard. Each vertex of this graph represents a square of the chessboard, and each edge connects two squares that are a knight's move apart from each other. More specifically, an m × n {\displaystyle m\times n} knight's graph is a knight's graph of an m × n {\displaystyle m\times n} chessboard. Its vertices can be represented as the points of the Euclidean plane whose Cartesian coordinates ( x , y ) {\displaystyle (x,y)} are integers with 1 ≤ x ≤ m {\displaystyle 1\leq x\leq m} and 1 ≤ y ≤ n {\displaystyle 1\leq y\leq n} (the points at the centers of the chessboard squares), and with two vertices connected by an edge when their Euclidean distance is 5 {\displaystyle {\sqrt {5}}} . For an m × n {\displaystyle m\times n} knight's graph, the number of vertices is n m {\displaystyle nm} . If m > 1 {\displaystyle m>1} and n > 1 {\displaystyle n>1} then the number of edges is 4 m n − 6 ( m + n ) + 8 {\displaystyle 4mn-6(m+n)+8} (otherwise there are no edges). For an n × n {\displaystyle n\times n} knight's graph, these simplify so that the number of vertices is n 2 {\displaystyle n^{2}} and the number of edges is 4 ( n − 2 ) ( n − 1 ) {\displaystyle 4(n-2)(n-1)} . A Hamiltonian cycle on the knight's graph is a (closed) knight's tour. A chessboard with an odd number of squares has no tour, because the knight's graph is a bipartite graph (each color of squares can be used as one of two independent sets, and knight moves always change square color) and only bipartite graphs with an even number of vertices can have Hamiltonian cycles. Most chessboards with an even number of squares have a knight's tour; Schwenk's theorem provides an exact listing of which ones do and which do not. When it is modified to have toroidal boundary conditions (meaning that a knight is not blocked by the edge of the board, but instead continues onto the opposite edge) the 4 × 4 {\displaystyle 4\times 4} knight's graph is the same as the four-dimensional hypercube graph.
Tema degli esploratori: matematica e informatica teorica (deposito sistematico; ricerca «graph theory»).
Fonte: Wikipedia in inglese, voce «Knight's graph» — https://en.wikipedia.org/wiki/Knight%27s_graph
Wikidata Q6422173 (dati Wikidata in CC0 1.0) — https://www.wikidata.org/wiki/Q6422173
Autori: i contributori di Wikipedia (cronologia: https://en.wikipedia.org/wiki/Knight%27s_graph?action=history).
Licenza: Creative Commons Attribuzione-Condividi allo stesso modo 4.0 (CC BY-SA 4.0) — https://creativecommons.org/licenses/by-sa/4.0/. Il riuso richiede attribuzione e stessa licenza.
Estratto dell'introduzione non modificato nel contenuto; revisione 1347242793, consultata il 2026-10-07T23:02:11.407Z tramite l'API ufficiale di Wikipedia. Impronta SHA-256 dell'estratto: 8c0e2f18f82ba80605a4af28a75ccc19d4105bea69f2144d9ac7c7575e8af0d3