       ])
 
     initialize: =>
+      @module = D3.sankey
       if @get('gquery')
         @gquery = new Gquery({key: @get('gquery')})
       @right_links = []
       @left_links = []
 
     height: => @value()
+
+    siblings: =>
+      items = _.groupBy(@module.nodes.models, (node) -> node.get('column'))
+      items[@get 'column']
+
 
   Link: class extends Backbone.Model
     initialize: =>

  Node: class extends Backbone.Model
    @width: 170
    @horizontal_spacing: 400
    y_offset: => @get('row') * 100
    x_offset: => @get('column') * D3.sankey.Node.horizontal_spacing + 20
    x_center: => @x_offset() + D3.sankey.Node.width / 2
    y_center: => @y_offset() + @value() / 2


    value: =>
      if @gquery
        @gquery.get('future_value') / 8
      else
        10

