(self)
| 499 | self.add_graph_element(graph) |
| 500 | |
| 501 | def __str__(self): |
| 502 | from xml.etree.ElementTree import tostring |
| 503 | |
| 504 | if self.prettyprint: |
| 505 | self.indent(self.xml) |
| 506 | s = tostring(self.xml).decode(self.encoding) |
| 507 | return s |
| 508 | |
| 509 | def attr_type(self, name, scope, value): |
| 510 | """Infer the attribute type of data named name. Currently this only |