original_docstring:  Adds a state transition from state 1 to state 2 if action is performed.
  
          :param state_1: any hashable value.
          :param action: any hashable value.
          :param state_2: any hashable value.
          :return: None
          
docstring: Adds a state transition from state 1 to state 2 if action is performed.
docstring_tokens: Adds a state transition from state 1 to state 2 if action is performed .
code: def add_transition(self, state_1, action, state_2):
          """ Adds a state transition from state 1 to state 2 if action is performed.
  
          :param state_1: any hashable value.
          :param action: any hashable value.
          :param state_2: any hashable value.
          :return: None
          """
          action_id = next(self._action_id)
          self.states.add_edge(node1=state_1, node2=action_id)
          self.states.add_edge(node1=action_id, node2=state_2)
          self.actions[action_id] = action
code_tokens: def add_transition ( self , state_1 , action , state_2 ) : action_id = next ( self . _action_id ) self . states . add_edge ( node1 = state_1 , node2 = action_id ) self . states . add_edge ( node1 = action_id , node2 = state_2 ) self . actions [ action_id ] = action
short_docstring: Adds a state transition from state 1 to state 2 if action is performed.
short_docstring_tokens: Adds a state transition from state 1 to state 2 if action is performed .
comment: """ Adds a state transition from state 1 to state 2 if action is performed.
  
          :param state_1: any hashable value.
          :param action: any hashable value.
          :param state_2: any hashable value.
          :return: None
          """