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)
| 145 | |
| 146 | |
| 147 | def 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 | |
| 163 | def read_dot(path): |