Simple code to convert a data structure in a .dot file