Args:
            sid (int): The state identifier
        Return:
            int: The group identifier that the state belongs

def _get_group_from_state(self, sid):
        """
        Args:
            sid (int): The state identifier
        Return:
            int: The group identifier that the state belongs
        """
        for index, selectgroup in enumerate(self.groups):
            if sid in selectgroup:
                return index