So if I get you right, I think you should do this
for i in G.nodes():
for elem in r_list[:]:
G.nodes[i]['politic'] = elem
r_list.remove(elem)
continue
CLICK HERE to find out more related problems solutions.
So if I get you right, I think you should do this
for i in G.nodes():
for elem in r_list[:]:
G.nodes[i]['politic'] = elem
r_list.remove(elem)
continue
CLICK HERE to find out more related problems solutions.