Re: List and order

2006-05-16 Thread Nic
Perfect. Thanks. Nic "Peter Otten" <[EMAIL PROTECTED]> ha scritto nel messaggio news:[EMAIL PROTECTED] > Nic wrote: > >> The only problem is that from: >> 12 >> 22 >> 21 >> In spite of writing >> 12 12 22 >> it writes >> 12 21 22 >> Do you know how is it possible to delete also this last trouble?

Re: List and order

2006-05-15 Thread Peter Otten
Nic wrote: > The only problem is that from: > 12 > 22 > 21 > In spite of writing > 12 12 22 > it writes > 12 21 22 > Do you know how is it possible to delete also this last trouble? I thought that the two 12 were a typo, but it seems you want to reorder the nodes inside an edge, too. Here's a fix

Re: List and order

2006-05-15 Thread Nic
Many thanks. Both the cases are OK. The only problem is that from: 12 22 21 In spite of writing 12 12 22 it writes 12 21 22 Do you know how is it possible to delete also this last trouble? Thanks a bunch, Nic "Peter Otten" <[EMAIL PROTECTED]> ha scritto nel messaggio news:[EMAIL PROTECTED] > Nic

Re: List and order

2006-05-15 Thread Peter Otten
Nic wrote: > I tried to insert and execute the code, but the following error happens: > > Traceback (most recent call last): > File "grafodna.py", line 10, in ? > edges.sort(key = lambda u, v: (ddeg(u), ddeg(v))) > TypeError: () takes exactly 2 arguments (1 given) > > Do you know how is it

Re: List and order

2006-05-15 Thread Nic
Hello Miki, Many thanks for the support. I tried to insert and execute the code, but the following error happens: Traceback (most recent call last): File "grafodna.py", line 10, in ? edges.sort(key = lambda u, v: (ddeg(u), ddeg(v))) TypeError: () takes exactly 2 arguments (1 given) Do you