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

Function write_dot

easygraph/readwrite/graphviz.py:147–160  ·  view source on GitHub ↗

Write EasyGraph graph G to Graphviz dot format on path. Parameters ---------- G : graph A easygraph graph path : filename Filename or file handle to write

(G, path)

Source from the content-addressed store, hash-verified

145
146
147def write_dot(G, path):
148 """Write EasyGraph graph G to Graphviz dot format on path.
149
150 Parameters
151 ----------
152 G : graph
153 A easygraph graph
154 path : filename
155 Filename or file handle to write
156 """
157 A = to_agraph(G)
158 A.write(path)
159 A.clear()
160 return
161
162
163def read_dot(path):

Callers

nothing calls this directly

Calls 3

to_agraphFunction · 0.85
writeMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected