def get_hash_key(self, cut: Cut) -> bool: hash_str = cut.get_hash_str() return hash_str in self.hashmap
def set_hash_key(self, cut: Cut) -> None: hash_str = cut.get_hash_str() if hash_str not in self.hashmap: self.hashmap.append(hash_str)
def get_hash_key(self, cut: Cut) -> bool: hash_str = cut.get_hash_str() return hash_str in self.hashmap
def set_hash_key(self, cut: Cut) -> None: hash_str = cut.get_hash_str() if hash_str not in self.hashmap: self.hashmap.append(hash_str)