           {
             source: nodes.indexOf node
             target: nodes.indexOf other_node
-            similarities: _.filter _.map( active_similarity_types(), (similarity_type) ->
+            similarities: _.filter _.map( active_types, (similarity_type) ->
               {
                 type: similarity_type
                 list: similarities[similarity_type]

        .style 'stroke', group_fill
        .style 'stroke-width', 50
        .on 'click', (d) ->
          graph.nodes.forEach (n) ->
            n.selected = n in d.values
          d3.selectAll('.node').attr 'class', (n) -> if n.selected then 'node selected' else 'node'
          refresh_selected_nodes()

    # constantly redraws the graph, with the following items
    force.on 'tick', ->

  constructor: ->
    ScholarMapViz.$similarity_types.on 'click', 'input[type="checkbox"]', ->
      $this = $(@)
      if ScholarMapViz.$similarity_types.find('input:checked').length == 0
        $this.prop 'checked', true
      else
        ScholarMapViz.current_map.link_weight_cache = {}
        ScholarMapViz.current_map.draw()
