def key_for_path(p):
    """
    Representation of the path, ID for a path
    :param p: a JSON path dictionary
    :return: a unique string for the path
    """
    # key for a path is made of starting user id and ending business id in the path
    return '%s_%s' % (p[0]['props']['id'], p[-1]['props']['id'])