recover the fsm graph generation