def dp_key(relations):
    """
    generates a unique key for the dptable dictionary
    :param relations: set of relations
    :return: str
    """
    return '-'.join(sorted([r.name for r in relations]))