         return {caption: '{id}'} if not item or not item.propertyList?.length > 0
         default_caption = {caption: "{#{item.propertyList?[0].key}}"}
         default_caption
+
+      getDefaultRelationshipCaption: (item) ->
+        return {caption: '{type}'} 
 
       #
       # Methods for getting and modifying rules


        return provider.defaultColors[0]

      setDefaultStyling: (selector, item) ->
        rule = @findRule(selector)


        @calculateStyle(selector)

      forRelationship: (rel) ->
        selector = @relationshipSelector(rel)
        @setDefaultRelationshipStyling(selector, rel)
        @calculateStyle(selector)

      findAvailableDefaultColor: () ->
        usedColors = {}
