Re: TSP in python ; this is code to solve tsp whenever called, where given coordinates as in name of pos and then start coordinate as in start, help me how it works ?

2016-03-20 Thread Qurrat ul Ainy
help required !!! -- https://mail.python.org/mailman/listinfo/python-list

TSP in python ; this is code to solve tsp whenever called, where given coordinates as in name of pos and then start coordinate as in start, help me how it works ?

2016-03-19 Thread Qurrat ul Ainy
from os import system, getcwd, chdir def tsp_generate_hops(pos, start, length): hops = [] tour = solve_tsp(pos) c = -1 for hop in tsp_hop_gen(tour, start): c += 1 hops.append(hop) if c == length: break return hops def solve_tsp(data): old_cwd = getcwd(

Re: need some basic help

2015-12-24 Thread Qurrat ul Ainy
On Thursday, December 24, 2015 at 8:33:59 PM UTC+1, Qurrat ul Ainy wrote: > what is snippet ?? > > > > On Thursday, December 24, 2015 at 5:25:18 AM UTC+1, Benjamin Kulas wrote: > > On Wednesday, December 23, 2015 at 7:53:43 PM UTC-6, Qurrat ul Ainy wrote: > > > H

Re: need some basic help

2015-12-24 Thread Qurrat ul Ainy
what is snippet ?? On Thursday, December 24, 2015 at 5:25:18 AM UTC+1, Benjamin Kulas wrote: > On Wednesday, December 23, 2015 at 7:53:43 PM UTC-6, Qurrat ul Ainy wrote: > > Hello, > > > > Can someone please explain this code below. I am new at Python . > >

need some basic help

2015-12-23 Thread Qurrat ul Ainy
Hello, Can someone please explain this code below. I am new at Python . Thanks def receive_messages(self, msgs, time): for msg in msgs: msg.set_recv_time(time) self.msgs_received.extend(msgs) -- https://mail.python.org/mailman/listinfo/python-list