       nodes.slice(index+1, nodes.length).map (other_node) =>
         similarities = {}
         any_links = false
-        for similarity_type in @similarity_types()
+        for similarity_type in @active_similarity_types()
           similarities[similarity_type] = if node[similarity_type] and other_node[similarity_type]
             if node[similarity_type] and typeof(node[similarity_type][0]) == 'object'
               node_attr_ids       =       node[similarity_type].map (similarity) -> similarity.id

      activation_callback()


class ScholarMapViz.Initializer

  constructor: ->
    @setup()
    @fetch_default_data()
    new ScholarMapViz.DataToggle

  setup: ->
    ScholarMapViz.$window = $(window)

          {
            source: nodes.indexOf node
            target: nodes.indexOf other_node
            similarities: @active_similarity_types().map (similarity_type) ->
              {
                type: similarity_type
                list: similarities[similarity_type]
