def _state_removal_solve(self):
        """The State Removal Operation"""
        initial = sorted(
            self.mma.states,
            key=attrgetter('initial'),
            reverse=True)[0].stateid
        for state_k in self.mma.states:
            if state_k.final:
                continue
            if state_k.stateid == initial:
                continue
            self._state_removal_remove(state_k.stateid)

        print self.l_transitions
        return self.l_transitions
def _state_removal_solve ( self ) : initial = sorted ( self . mma . states , key = attrgetter ( 'initial' ) , reverse = True ) [ 0 ] . stateid for state_k in self . mma . states : if state_k . final : continue if state_k . stateid == initial : continue self . _state_removal_remove ( state_k . stateid ) print self . l_transitions return self . l_transitions
The State Removal Operation