clear method

void clear()

This method is used to clear the core controller and all of its subsystems.

Implementation

void clear() {
  nodes.clear();
  spatialHashGrid.clear();
  selectedNodeIds.clear();
  selectedLinkIds.clear();
  _linksById.clear();

  linksDataDirty = true;
  nodesDataDirty = true;
}