private static void dotGenerator() {
		try {

			Runtime rt = Runtime.getRuntime();
			Process pr = rt.exec("which dot");

			pr.waitFor();
			boolean canDo = (pr.exitValue() == 0);
			if (!canDo) {
				System.err
						.println("dot is not installed on this machine will not be able to generate png file");
			} else {
				if (Config.verbose >= 1) {
					System.out.print("Generating Trees in format png......");
				}
				pr = Runtime.getRuntime().exec(
						"dot -Tpng -o " + Config.out + ".png " + Config.out
								+ "." + Config.format);
				try {
					pr.waitFor();
				} catch (InterruptedException e) {
					e.printStackTrace();
					throw new RuntimeException();
				}
				System.out.println("OK");
			}
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (InterruptedException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}