Here is the structure of the code snippet that creates the graph and meets certain conditions:
for i in range(1, len(binary_combinations)):
# ...something
h=0
while len(added)<i+1:
#...something
for j in it.combinations(good, 8):
#...something
h=h+1
Where binary_combinations, added and good they are some lists.
I'm trying to implement multiprocessing for it for the whole for loop. Or only for the function it.combinations, but to no avail, because I can not reconcile this with the execution of the while-loop.
How to approach it?