code: def iteration(self, node_status=True):
          
          self.clean_initial_status(self.available_statuses.values())
  
          actual_status = {node: nstatus for node, nstatus in future.utils.iteritems(self.status)}
  
          if self.actual_iteration == 0:
              self.actual_iteration += 1
              delta, node_count, status_delta = self.status_delta(actual_status)
              if node_status:
                  return {"iteration": 0, "status": actual_status.copy(),
                          "node_count": node_count.copy(), "status_delta": status_delta.copy()}
              else:
                  return {"iteration": 0, "status": {},
                          "node_count": node_count.copy(), "status_delta": status_delta.copy()}
  
          for u in self.graph.nodes():
              if actual_status[u] == 1:
                  continue
  
              neighbors = list(self.graph.neighbors(u))
              if isinstance(self.graph, nx.DiGraph):
                  neighbors = list(self.graph.predecessors(u))
  
              infected = 0
              for v in neighbors:
                  infected += self.status[v]
  
              if len(neighbors) > 0:
                  infected_ratio = float(infected)/len(neighbors)
                  if infected_ratio >= self.params['nodes']['threshold'][u]:
                      actual_status[u] = 1
  
          delta, node_count, status_delta = self.status_delta(actual_status)
          self.status = actual_status
          self.actual_iteration += 1
  
          if node_status:
              return {"iteration": self.actual_iteration - 1, "status": delta.copy(),
                      "node_count": node_count.copy(), "status_delta": status_delta.copy()}
          else:
              return {"iteration": self.actual_iteration - 1, "status": {},
                      "node_count": node_count.copy(), "status_delta": status_delta.copy()}
docs: Execute a single model iteration
  
          :return: Iteration_id, Incremental node status (dictionary node->status)