def write_image(self, display=False): """" to do """ with open("%s.dot" % str(self.graph), 'w') as f: rdf2dot(Graph(self.graph), f) if display == "True": Source.main(f)