Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 560 Bytes

README.md

File metadata and controls

21 lines (16 loc) · 560 Bytes

go-decide Build Status

Decision Tree

Visualizing Tree

A visualization of the decision can be generated by calling the Graph(w io.Writer) method on the Tree. This will output a DOT file of the graph which can be turned into a PDF using the following command.

dot -Tpdf decision.dot > decision.pdf 

Example

	writer, err := os.Create("decision.dot")
	if err != nil {
		c.Fatal(err)
	}
	defer f.Close()
	tree.Graph(writer)