MCPcopy Create free account
hub / github.com/easy-graph/Easy-Graph / dump

Method dump

easygraph/readwrite/graphml.py:665–671  ·  view source on GitHub ↗
(self, stream)

Source from the content-addressed store, hash-verified

663 self.add_graph_element(G)
664
665 def dump(self, stream):
666 from xml.etree.ElementTree import ElementTree
667
668 if self.prettyprint:
669 self.indent(self.xml)
670 document = ElementTree(self.xml)
671 document.write(stream, encoding=self.encoding, xml_declaration=True)
672
673 def indent(self, elem, level=0):
674 # in-place prettyprint formatter

Callers 3

write_graphml_xmlFunction · 0.95
saveMethod · 0.45
write_pickleFunction · 0.45

Calls 2

indentMethod · 0.95
writeMethod · 0.80

Tested by

no test coverage detected