def inverse(self):
    'inverse DAG, where parents becomes children, etc.'
    raise NotImplementedError()
inverse DAG, where parents becomes children, etc.
def inverse(self):
    
    raise NotImplementedError()