def frags_in_cutoff(fragList, cutoff, center_ip_id):
    """Return list of indices of frags within cutoff from central ion pair excluding central ion pair."""

    indexes = []
    for i in range(len(fragList)):
        if fragList[i]["dist"] < cutoff and i != center_ip_id:
            indexes.append(i)
    return indexes