Through the property active and the function updateRelation you can change if a relation should be active or not.
active
updateRelation