         text(line)
         y += 10
 
+    # callbacks
+    #
+    node_mouseover: ->
+      klass = $(this).parent().attr('data-id')
+      d3.selectAll(".link").
+        each((d) ->
+          return if d.connects(klass)
+          d3.select(this).
+            transition().
+            duration(200).
+            style("opacity", 0.2)
+        )
+
+    node_mouseout: ->
+      d3.selectAll(".link").
+        transition().
+        duration(100).
+        style("opacity", 0.8)
+
     # this method is called every time we're updating the chart
     #
     refresh: =>


    color: => @get('color') || "steelblue"

  # This is the main chart class
  #
  View: class extends D3ChartView

        data(@module.nodes.models, (d) -> d.get('id')).
        enter().
        append("svg").
        attr("class", (d) -> "node").
        attr("data-id", (d) -> d.get('id')).
        attr("x", (d) => @x(@module.Node.horizontal_spacing * d.get('column') + 20)).
        attr("y", (d) => @y(d.y_offset()))

