Is there a hook when a relation is created, updated or deleted?
Relations are themselves entities, so you can use the entity hooks:


hook_entity_insert()
hook_entity_update()
hook_entity_presave()


and so on, checking the $type parameter to react only for the appropriate entity type(s).

There's a full list of available entity hooks in the system.api.php file.