def set_printer(self, file_name, basename):
self.graph_file = open(file_name, "<STR_LIT>")<EOL>self.printer = VCGPrinter(self.graph_file)<EOL>self.printer.open_graph(<EOL>title=basename,<EOL>layoutalgorithm="<STR_LIT>",<EOL>late_edge_labels="<STR_LIT:yes>",<EOL>port_sharing="<STR_LIT>",<EOL>manhattan_edges="<STR_LIT:yes>",<EOL>)<EOL>self.printer.emit_node = self.printer.node<EOL>self.printer.emit_edge = self.printer.edge<EOL>
initialize VCGWriter for a UML graph