code: function() {
              graph.off('changed', onGraphChanged);
              for (var i=0;i<physicsSimulators.length; i++) {
                  physicsSimulators[i].off('stable', onStableChanged);
              }
          }
docs: Request to release all resources