Include a newline on the debug generated graph visualization

fix some import bugs and clear some whitespace from the command test
This commit is contained in:
Matthew Jones
2014-03-12 16:32:21 -04:00
parent fbafa22a5a
commit c0382f78bb
4 changed files with 4 additions and 2 deletions

View File

@@ -72,7 +72,7 @@ class SimpleDAG(object):
for from_node, to_node in self.edges:
doc += "%s -> %s;\n" % (short_string_obj(self.nodes[from_node]['node_object']),
short_string_obj(self.nodes[to_node]['node_object']))
doc += "}"
doc += "}\n"
gv_file = open('/tmp/graph.gv', 'w')
gv_file.write(doc)
gv_file.close()