G=Graph({1:[2,7],2:[1,3],3:[2,4,5],4:[3,6,11],5:[3,6,7],6:[4,5,7],7:[1,5,6],8:[6.9],9:[8,10],10:[9,11],11:[4,10]})

G.plot() p=G.hamiltonian_cycle() p.plot() //plots the hamiltonian cycle

Kreyszig-21.2-8-U (last edited 2010-12-18 09:44:33 by Aditya J)