reinitModules();
if(_g != null && _g.numVertices() > DegreeFilterUI.THRESHHOLD) {  setFilter(new DegreeFilter());  runFilter(new Object[] {_g.getVertices().iterator().next(), new Integer(1)});  JOptionPane.showMessageDialog(null, "We don't recommend showing over " + DegreeFilterUI.THRESHHOLD + " vertices at onetime.\nYour graph has been filtered using the degree filter.\nChange the settings to show all vertices at the same time.", "Too Many Vertices", JOptionPane.WARNING_MESSAGE); } else { reinitModules(); }
	public void initialize(String [] args) {		if(args == null || args.length < 1) {			_g = null;		} else {			String ioName = args[0];			String [] ioArgs = new String[args.length - 1];			IOInterface io;			for(int j = 1; j < args.length; j++) {				ioArgs[j - 1] = args[j];			}			if(_pm.type(ioName) != NPluginLoader.PLUGIN_TYPE_IO) {				System.err.println("Could not find IO-Plugin '" + ioName + "'");				_g = null;			} else {				io = _pm.get(ioName);				try {					_g = (Graph) io.getData(ioArgs);				} catch (IOException ioe) {					System.err.println("There was an error importing data.  Perhaps your arguments were invalid.");					_g = null;				}			}			_originalGraph = _g;		}		reinitModules();	}