   //nodes[n_index].value = run_get_edges(n_index);
   //run_process();
   run_set_edges(n_index);
-  run_transition();
+  run_transition(n_index);
   
 }
 

  }
}

void run_transition() {
  // put a message in the queue
}

void set_run_state(short new_state) {

  for (i = 0; i < 10; i++) {
    t = edges[i].type;
    n = edges[i].name;
    if (t == e_type) {
      if ((n == msg || (msg == "*" && edges[i].from == from)) ||
          (msg == "from" && edges[i].from == from)) {
        return i;
      }
    }
  }
  return -1; 
