def discard(self): for transition in self.getStateTransitions(self.id): transition.discard() disconnect_element(self)
def discard(self): for state in self.states[:]: state.discard() disconnect_element(self)