| Properties bipartite | ||
|  | ||
| Vertices m
        n
      
    
    {displaystyle mn} Edges 4
        m
        n
        −
        6
        (
        m
        +
        n
        )
        +
        8
      
    
    {displaystyle 4mn-6(m+n)+8} Girth 4 (if 
  
    
      
        n
        ≥
        3
      
    
    {displaystyle ngeq 3}
  
 and 
  
    
      
        m
        ≥
        5
      
    
    {displaystyle mgeq 5}
  
) | ||
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 
  
    
      
        
For a 
  
    
      
        
A Hamiltonian cycle on the knight's graph is a knight's tour. A chessboard with an odd number of squares has no tour, because the knight's graph is a bipartite graph and only the bipartite graphs with an even number of vertices can have Hamiltonian cycles. All but finitely many 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 
  
    
      
        
