state machine graph update