def get(self, statediag):
        """
        Args:
            statediag (list): The states of the PDA
        Returns:
            list: A reduced list of states using BFS
        """
        if len(statediag) < 1:
            print 'PDA is empty and can not be reduced'
            return statediag
        newstatediag = self.bfs(statediag, statediag[0])
        return newstatediag
Args:
            statediag (list): The states of the PDA
        Returns:
            list: A reduced list of states using BFS