Ask Your Question

Revision history [back]

With your code, I get this output: image description

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: image description

It is not clear what you are hoping to get, but the second version certainly looks better than the first one.