def get_new_edgelist(edlist, rifrullo):
    """Create a new edge list based on the shuffled node lists.

    :param edlist: original edge list
    :type edlist: list of edges as tuples (i, j)
    :param rifrullo: shuffled node sequence
    :type rifrullo: list of integers
    """
    newedges = []
    for j in range(len(edlist)):
        newedges.append((rifrullo[edlist[j][0]], rifrullo[edlist[j][1]]))
    return newedges