Book
Advanced Engineering Mathematics
Author
Erwin Kreyszig
Edition
8th Edition
m=Graph({1:[2,9],2:[1,5,8],3:[4,5,12],4:[3],5:[2,3,6,8,9],6:[3,5,7],7:[6,8],8:[2,5,10,11],9:[1,5],10:[8,11],11:[8,10,12],12:[3,11]})
m.plot() p=m.hamiltonian_cycle()
- Traceback (click to the left of this block for traceback)
- ..
ValueError: The given graph is not hamiltonian //final output
Solution by:
- J.Aditya, Student, Snist