def findconnector(cycle_sets):
    """Determine the index of the connector cycle for a Type-II-like motif, or None if the cycles do not comprise such a motif."""
    for connector_c, connector in enumerate(cycle_sets):
        other1 = cycle_sets[(connector_c + 1) % 3]
        other2 = cycle_sets[(connector_c + 2) % 3]
        if connector.isdisjoint(other1) or connector.isdisjoint(other2):
            continue
        if other1.isdisjoint(other2):
            return connector_c
    return None