According to wolfram, $n$-wheel graphs have $4(n-1)(n-2)$ Hamilton paths in them.
$n$-wheel graph = http://mathworld.wolfram.com/WheelGraph.html http://mathworld.wolfram.com/HamiltonianPath.html here it states that n-wheel graphs have $4(n-1)(n-2)$ Hamilton paths in them.
Does anyone know a good explanation or proof to this statement? I cant seem to understand how they reached this number .
Thanks!
The Mathworld link counts the number of directed Hamiltonian paths. I will count the number of undirected paths, which can each be oriented in two ways. Let the spokes of $W_n$ be the edges incident with the vertex of degree $n-1$ (the hub). Let the rim vertices be the vertices different from the hub.
First count the number of Hamiltonian paths having exactly 1 spoke. There are $n-1$ spokes, and each spoke corresponds to 2 Hamiltonian paths (counterclockwise & clockwise). So there are $2(n-1)$ such paths.
Now consider the number of Hamiltonian paths having 2 spokes. Consider two cases: 1) the rim vertices incident with the spokes are adjacent 2) the rim vertices incident with the spokes are not adjacent. In Case 1, there are $n-1$ ways to choose the spokes, and once the spokes are chosen, the start and end vertices of the path can be chosen in $n-2$ ways, for $(n-1)(n-2)$ paths. In Case 2, there are $\left(\binom{n-1}{2} - (n-1)\right) = \frac{(n-1)(n-4)}{2}$ ways to choose the spokes, and each choice of spokes corresponds to 2 Hamiltonian paths (counterclockwise & clockwise), for $(n-1)(n-4)$ paths.
Thus the total number of undirected Hamiltonian paths is:
$$2(n-1) + (n-1)(n-2) + (n-1)(n-4) = 2(n-1)(n-2)$$