class_docstr: A representation of a state managed by a ``StateMachine``.
  
  Attributes:
      name (instance of FreeGroupElement or string) -- State name which is also assigned to the Machine.
      transisitons (OrderedDict) -- Represents all the transitions of the state object.
      state_type (string) -- Denotes the type (accept/start/dead) of the state.
      rh_rule (instance of FreeGroupElement) -- right hand rule for dead state.
      state_machine (instance of StateMachine object) -- The finite state machine that the state belongs to.
docstr: Add a transition from the current state to a new state.
  
  Keyword Arguments:
      letter -- The alphabet element the current state reads to make the state transition.
      state -- This will be an instance of the State object which represents a new state after in the transition after the alphabet is read.
docstr_tok: ["Add","a","transition","from","the","current","state","to","a","new","state",".","Keyword","Arguments",":","letter","--","The","alphabet","element","the","current","state","reads","to","make","the","state","transition",".","state","--","This","will","be","an","instance","of","the","State","object","which","represents","a","new","state","after","in","the","transition","after","the","alphabet","is","read","."]
code: def add_transition(self, letter, state):
      """
      Add a transition from the current state to a new state.
  
      Keyword Arguments:
          letter -- The alphabet element the current state reads to make the state transition.
          state -- This will be an instance of the State object which represents a new state after in the transition after the alphabet is read.
  
      """
      self.transitions[letter] = state
  
label_desc: Use image node_id 2 for calling the State obj's underlying member method code with example usage: obj.add_transition(letter, state) without return types