Searched refs:sort_keys (Results 1 – 1 of 1) sorted by relevance
44 def opt_neighbours(sort_keys): argument45 sort_keys = dict(sort_keys)50 sort_keys.items(), key=lambda item: (item[0].bit_count(), len(item[1]))52 res.append((cur_key, sort_keys[cur_key]))53 del sort_keys[cur_key]56 while sort_keys:61 next_key = max(sort_keys.keys(), key=jaccard_index)62 res.append((next_key, sort_keys[next_key]))63 del sort_keys[next_key]80 sort_keys = defaultdict(list)[all …]