public static void clearAllNodes() {
		eventQueue.pruneAllNodeEvents();

		packetsInTheAir = new PacketsInTheAirBuffer();
		for(Node n : nodes) {
			n.outgoingConnections.removeAndFreeAllEdges();
		}
		nodes = createNewNodeCollection();
		Node.resetIDCounter(); // new nodes restart their ID with 1
		if(Global.isGuiMode){
			GUI gui = Tools.getGUI();
			gui.allNodesAreRemoved();
			gui.redrawGUINow();		
		}
	}