Print relation names as labels.
Fix for depsgraph rebuilding: Old depsgraph needs to be freed first,
otherwise relations get added repeatedly.