(key, rand_table, idx_list, n)
| 74 | return None |
| 75 | |
| 76 | def keyhash(key, rand_table, idx_list, n): |
| 77 | ret = 0 |
| 78 | for i in range(0, len(idx_list)): |
| 79 | ret += ord(charat(key, idx_list[i])) * rand_table[i] |
| 80 | return ret % n |
| 81 | |
| 82 | def generate_graph(key_list, idx_list, factor): |
| 83 | n = int(len(key_list) * factor + 1) |
no test coverage detected