   if (state == 3 && inputString == END_HBG) {
     next_state = 0;
     state = -1;
+    graph_loaded = 1;
     com_graph();
   }
   // processing for states 2 and 3

    if (inputString == "rfi") {
      com_rfi();
    }
  }
  if (state == 1 && inputString == NODES_HBG) {
    next_state = 2;

Edge edges[10];

// hbumtf parser vars.
// state 0=outside_com, 1=loading, 2=nodes, 3=edges 
int state = 0;
short run_state = 0;
boolean graph_loaded = 0;


// message queue
short message_count = 0;
String message_str;

void setup() {
  // initialize serial:
