def substring_dict(string):
    sub_dict = {}
    for i in range(0, len(string)):
        sub_dict[i] = {i: string[i:] for _, char in enumerate(string)}
    return sub_dict
Fetch a list of unique constraints for a label.
dataset/ETHPy150Open christabor/MoAL/MOAL/helpers/generic.py/substring_dict--crossover with--dataset/ETHPy150Open nigelsmall/py2neo/py2neo/database/__init__.py/Schema.get_uniqueness_constraints