Hi guys im new to python. I have a question concerning a double-for loop:
for i in range (rounds):
for n, data in G.nodes ().items ():
if data ["example"] == "x":
for neighbor in nx.all_neighbors (G, n):
if -------------
for n, data in G.nodes ().items ():
if data ["test"] == "I" and random.random () < somevalue
data ["test"] = "R"
if data ["test"] == "NI":
DO Something
This loop at the end is changing some status in data["test"] -- Do Something. My Question: How can i setup that the status/variable is changing after 2 ROUNDS and not next round?
Thanks, Patrick