You can create as number of constraints equal to the number of nodes present. Ideally there should not be any need for constraints above this limit.