add fsm graph