 
   focusNode: (node)->
     @unfocusNode()
-    @nodes_cont.selectAll('#node-'+node.id).classed('active', true)
+    @container.selectAll('#node-'+node.id).classed('active', true)
 
   unfocusNode: ->
-    @nodes_cont.selectAll('.active').classed('active', false)
+    @container.selectAll('.node.active').classed('active', false)
 
 
   # Resize Methods

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

    # JOIN new data with old elements
    @nodes = @nodes_cont.selectAll('.node').data(@data_nodes)

    console.log 'nodes after join', @nodes


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

    # JOIN new data with old elements
    @relations = @container_inner.selectAll('.relation').data(@data_relations_visibles)

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