       # Add relation
       @visualizationGraphCanvas.addRelation relation.attributes
       @visualizationGraphCanvas.updateLayout()
+
+  onRelationsChangeAttribute: (relation) ->
+    @visualizationGraphCanvas.updateRelations()
 
   onRelationsRemove: (relation) ->
     @visualizationGraphCanvas.removeRelation relation.attributes


  onNodeChangeName: (node) ->
    console.log 'onNodeChangeName', node.attributes.name
    @visualizationGraphCanvas.updateNodeName node.attributes, node.attributes.name
    @updateGraphInfoNode node

  onNodeChangeDescription: (node) ->
    console.log 'onNodeChangeDescription', node.attributes.description
    @visualizationGraphCanvas.updateNodeDescription node.attributes, node.attributes.description
    @updateGraphInfoNode node

  onNodeChangeVisible: (node) ->

    #!!! We need to arr node_type changes
    #@collection.nodes.bind 'change:node_type',   @onNodeChangeType, @
    #@collection.relations.bind 'add',             @onRelationsChange, @
    @collection.relations.bind 'change:source_id',      @onRelationsChangeNode, @
    @collection.relations.bind 'change:target_id',      @onRelationsChangeNode, @
    # By now we don't apply any visual style based on relation_type
    #@collection.relations.bind 'change:relation_type',  @onRelationsChangeAttribute, @
    @collection.relations.bind 'change:direction',      @onRelationsChangeAttribute, @
    @collection.relations.bind 'remove',                @onRelationsRemove, @
    # Subscribe Canvas Events
    Backbone.on 'visualization.node.showInfo',    @onNodeShowInfo, @
    Backbone.on 'visualization.node.hideInfo',    @onNodeHideInfo, @
