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

      nodes.slice(index+1, nodes.length).map (other_node) =>
        similarities = {}
        any_links = false
        for similarity_type in @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

    ScholarMapViz.container  = '#visualization'
    ScholarMapViz.$container = $(ScholarMapViz.container)

    ScholarMapViz.$similarity_types = $('#similarity-types')

  fetch_default_data: ->
    ScholarMapViz.current_map = new ScholarMapViz.PeopleMap
    $('#map-types').find('button[data-map-type="PeopleMap"]').addClass 'active'


