python3 hamilton.py graf.text witness.text
Hamiltonian cycle
otherwise print
Not a Hamiltonian cycle
Filename | Expected output |
---|---|
t1.text | Hamiltonian cycle |
t2.text | Not a Hamiltonian cycle |
t3.text | Not a Hamiltonian cycle |
t4.text | Not a Hamiltonian cycle |
t5.text | Hamiltonian cycle |
t6.text | Not a Hamiltonian cycle |
t7.text | Not a Hamiltonian cycle |