}
        } else {
          clearTimeout(hoverTimeout)
          hoverTimeout = null
        }
      })

      // Toogle selection
      g.on('click', (_, d) => {
        if (selected.size > 1 && selected.has(d.id)) {
          selected.delete(d.id)
        } else {
          selected.add(d.id)
        }
        pushState()
        // setTimeout(restartSimulation, 100);
        clearPopup()
        restartSimulation()
      })

      return g
    },
    update => {
      update.selectAll('circle')
        