(self, similarity_func=None, deferred_stash='deferred')
:param similarity_func: How to calculate similarity between two states.
        :param deferred_stash:  Where to store the deferred states.
:param similarity_func: How to calculate similarity between two states.
        :param deferred_stash:  Where to store the deferred states.
: param similarity_func : How to calculate similarity between two states . : param deferred_stash : Where to store the deferred states .
def __init__(self, similarity_func=None, deferred_stash='deferred'):
        """
        :param similarity_func: How to calculate similarity between two states.
        :param deferred_stash:  Where to store the deferred states.
        """
        super(UniqueSearch, self).__init__()
        self.similarity_func = similarity_func or UniqueSearch.similarity
        self.deferred_stash = deferred_stash
        self.uniqueness = dict()
        self.num_deadended = 0
def __init__ ( self , similarity_func = None , deferred_stash = 'deferred' ) : super ( UniqueSearch , self ) . __init__ ( ) self . similarity_func = similarity_func or UniqueSearch . similarity self . deferred_stash = deferred_stash self . uniqueness = dict ( ) self . num_deadended = 0