WIP:

Traceback (most recent call last):
  File rewi.py, line 126, in <module>
    ts = map(simulate, ls)
  File rewi.py, line 113, in simulate
    return S.run()
  File rewi.py, line 102, in run
    self.update()
  File rewi.py, line 94, in update
    self.update_link(i)
  File rewi.py, line 62, in update_link
    degs = degs[candidates]
IndexError: index 2 is out of bounds for axis 0 with size 1