Wolfram Computation Meets Knowledge

Visualize Hamiltonian Cycles

Make a loop by visiting each vertex only once.

    
In[1]:=
Click for copyable input
Find a Hamiltonian cycle:
In[2]:=
Click for copyable input
Out[2]=
Visualize a cycle:
In[3]:=
Click for copyable input
Out[3]=