write_dot function

Output a learner in .dot format