Re: Remove AllDifferent after being specified

Posted by Jiba on
URL: http://owlready.306.s1.nabble.com/Remove-AllDifferent-after-being-specified-tp3081p3084.html

Hi,

I think the best option is to iterate over all AllDifferents, find the right one, and destroy it, e.g.:

for all_different in onto.different_individuals():
  if set(all_different.entities) == { indA, indB }:
    all_different.destroy()

Jiba