| 1 | initial version |
With your code, I get this output:

If I make two changes — namely, changing the definition of affinites to use for i in range(0,6) and changing the definition of list_collab2 to use for x in list_collab — then I get this:

It is not clear what you are hoping to get, but the second version certainly looks better than the first one.
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.