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

Method write

easygraph/readwrite/gexf.py:617–621  ·  view source on GitHub ↗
(self, fh)

Source from the content-addressed store, hash-verified

615 self.graph_element.set("mode", "dynamic")
616
617 def write(self, fh):
618 if self.prettyprint:
619 self.indent(self.xml)
620 document = ElementTree(self.xml)
621 document.write(fh, encoding=self.encoding, xml_declaration=True)
622
623 def indent(self, elem, level=0):
624 i = "\n" + " " * level

Callers 15

write_gexfFunction · 0.95
writeRandomNetworkToFileFunction · 0.80
outputFunction · 0.80
write_dotFunction · 0.80
write_ucinetFunction · 0.80
dumpMethod · 0.80
appendMethod · 0.80
add_graph_elementMethod · 0.80
write_edgelistFunction · 0.80
write_gmlFunction · 0.80
stringizeFunction · 0.80
write_pajekFunction · 0.80

Calls 1

indentMethod · 0.95

Tested by 7

test_read_ucinetMethod · 0.64
setup_classMethod · 0.64
test_read_gmlMethod · 0.64
test_exceptionsMethod · 0.64
setup_classMethod · 0.64