def has_unresected_pair(resected_idx, unresected_imgs, img_adjacency):
    """Return true if resected_idx image has matches to >= 1 currently unresected image(s) """
    for idx in unresected_imgs:
        if img_adjacency[resected_idx][idx] == 1 or img_adjacency[idx][resected_idx] == 1:
            return True
    return False