def __init__(self, nodes=None, seed=0, hash_function=murmur3_32):
        """
        Constructor.
        """
        self.nodes = []
        self.seed = seed
        if nodes is not None:
            self.nodes = nodes
        self.hash_function = lambda x: hash_function(x, seed)
def __init__ ( self , nodes = None , seed = 0 , hash_function = murmur3_32 ) : self . nodes = [ ] self . seed = seed if nodes is not None : self . nodes = nodes self . hash_function = lambda x : hash_function ( x , seed )
Constructor.