src/machinelearning/DecisionTree.java
public void dotFile(String filename) {
		File outputFile = new File("results/treesDOT/"+filename+".dot");
        
        try(BufferedWriter writer = new BufferedWriter(new FileWriter(outputFile))) {
        	writer.write(graph());
        } catch (Exception e) {
        	System.out.println("Exception when saving the Decision tree into a dot file.");
        	e.printStackTrace();        	
        }
	}
/**
	 * Creates a dot file with the string representation of the decision tree <br>
	 * Location: results/treesDOT/filename.dot
	 * @param filename The name of the dot file
	 */
Creates a dot file with the string representation of the decision tree 
Location: results/treesDOT/filename.dot
@param filename The name of the dot file
Creates a dot file with the string representation of the decision tree Location : results / treesDOT / filename . dot @param filename The name of the dot file
public void dotFile(String filename) {
		File outputFile = new File("results/treesDOT/"+filename+".dot");
        try(BufferedWriter writer = new BufferedWriter(new FileWriter(outputFile))) {
        	writer.write(graph());
        } catch (Exception e) {
        	System.out.println("Exception when saving the Decision tree into a dot file.");
        	e.printStackTrace();        	
        }
	}
public void dotFile ( String filename ) { File outputFile = new File ( "results/treesDOT/" + filename + ".dot" ) ; try ( BufferedWriter writer = new BufferedWriter ( new FileWriter ( outputFile ) ) ) { writer . write ( graph ( ) ) ; } catch ( Exception e ) { System . out . println ( "Exception when saving the Decision tree into a dot file." ) ; e . printStackTrace ( ) ; } }
Creates a dot file with the string representation of the decision tree <br>
 Location: results/treesDOT/filename.dot
 @param filename The name of the dot file
Creates a dot file with the string representation of the decision tree <br > Location : results / treesDOT / filename . dot @param filename The name of the dot file