working on traversing the graph, putting the edges to a dot file