     @nodes_labels.classed 'highlighted', false
     @relations.classed 'weaken', false
     @relations.classed 'highlighted', false
-    #@relations_labels.classed 'highlighted', false
+    @relations_labels.classed 'highlighted', false
 
   onNodeClick: (d) =>
     # Avoid trigger click on dragEnd

  linkedByIndex:          {}
  parameters:             null
  nodes_relations_size:   null
  # Viewport object to store drag/zoom values
  viewport:
    width: 0

    @nodes_labels = @nodes_labels_cont.selectAll('.node-label')

  updateRelationsLabels: ->
    # Use General Update Pattern 4.0 (https://bl.ocks.org/mbostock/a8a5baa4c4a470cda598)

    # JOIN new data with old elements
    @relations_labels = @relations_labels_cont.selectAll('.relation-label').data(@data_relations_visibles)

    # EXIT old elements not present in new data
    @relations_labels.exit().remove()

    # UPDATE old elements present in new data
    @relations_labels.text((d) -> return d.relation_type)
    #@relations_labels.selectAll('textPath').text((d) -> return d.relation_type)

    # ENTER new elements present in new data.
    @relations_labels.enter()
      .append('text')
        .attr('id', (d) -> return 'relation-label-'+d.id)
        .attr('class', 'relation-label')
        .style('text-anchor', 'middle')
        .text((d) -> return d.relation_type)

      # .append('text')
      #   .attr('id', (d) -> return 'relation-label-'+d.id)
      #   .attr('class', 'relation-label')
      #   .attr('x', 0)
      #   .attr('dy', -4)
      # .append('textPath')
      #   .attr('xlink:href',(d) -> return '#relation-'+d.id) # link textPath to label relation
      #   .style('text-anchor', 'middle')
      #   .attr('startOffset', '50%') 
      #   .text((d) -> return d.relation_type)

    @relations_labels = @relations_labels_cont.selectAll('.relation-label')


  updateForce: (restarForce) ->
    @force.nodes(@data_nodes)
