                                              (-> (js* "this")
                                                  .-allNeighborsIndex
                                                  (aget node-id)
-                                                 goog.object/getKeys)) ; The graph keeps the neighbors as properties
+                                                 gobject/getKeys)) ; The graph keeps the neighbors as properties
                                            ))
 
 

(ns tropology.core
  (:require [reagent.core :as reagent :refer [atom]]
            [secretary.core :as secretary]
            [reagent.session :as session]
            [reagent-forms.core :refer [bind-fields]]

                    (.startForceAtlas2 sig {:worker true :barnesHutOptimize false})
                    (js/setTimeout #(.stopForceAtlas2 sig) 5000)
                    ; Set the colors
                    (gobject/forEach (-> sig .-graph .nodes)
                                     #(aset % "originalColor" (aget % "color")))
                    (gobject/forEach (-> sig .-graph .edges)
                                     #(aset % "originalColor" (aget % "color")))

                    (.bind sig "clickNode"
                           (fn [clicked]
