   constructor: (@node_animations, @start_time) ->
 
   setPositions: (time) ->
+    if @start_time == -1
+      @start_time = time
     for a in @node_animations
       a.setPosition(time - @start_time)
 


    return new CollectionAnimation(anims, t)

  makeMove1Anim: ->

  sortNodes: (compare, t) ->
    anims = []
    anims.push(@makeLineupAnim(default_node_radius, .1, t))

    #oldnodes = @nodes.slice(0) # clone
    #newnodes = []
    #while oldnode.length > 0

    @animations = @animations.concat(anims)


    name: 'sort by weight',
    action: (c, t) ->
      console.log('sort by weight')
      c.sortNodes( ((n1, n2) -> n2.value - n1.value), t)
  },
  {
    name: 'Shannon-Fano',
