     @context.clearRect 0, 0, @viewport.width, @viewport.height
   
     @drawRelations()
-
+    
+    if @node_active or @node_hovered
+      @drawRelationsLabels()
+    
     @drawNodes()
-
+    
     if @parameters.showNodesLabel or @node_hovered
       @drawNodesLabels()
 


  drawNodesLabels: ->
    # set styles
    @context.lineWidth = 1
    @context.strokeStyle = 'rgba(255,255,255,0.85)'
    @context.textAlign = 'center'
    @context.textBaseline = 'top'
    @data_nodes.forEach (d) =>
      # don't draw labels of weaken nodes
      if d.state > -1
        @context.fillStyle = d.fontColor
        @context.font      = '300 '+d.fontSize+'px Montserrat'
        @context.strokeText  d.name, d.x, d.y+d.size+1
        @context.fillText  d.name, d.x, d.y+d.size

  drawRelations: ->
    # make stroke color dynamic based on nodes state !!!

    @data_relations_visibles.forEach (d) =>
      @setRelationState d
      @setRelationColor d
    # sort relations to put highlighted on top
    # that's make some weird effects in force layout during animation
    @data_relations_visibles.sort @sortRelations
    # update canvas if force layout stoped
    if @force.alpha() < @force.alphaMin()
