def generate_list_interaction(list_superpixel, i_reference: int):
    """
    get list of index between reference pixel and all other superpixels.
    :param list_superpixel: list of individual superpixels
    :param i_reference: index to reference pixel
    :return:
    list of interactions with reference pixel
    """
    reference_pixel = list_superpixel[i_reference]
    list_interaction = [[reference_pixel, superpixel] for superpixel in list_superpixel]
    del list_interaction[i_reference]        # remove self-interaction
    return list_interaction