spmviz.io.write_graph#

spmviz.io.write_graph(G, path, format=None, scale=400.0)[source]#

Write a graph with all node and edge attributes (format from the extension).

.gexf also writes Gephi’s viz position (from x, y), color (from color or start/item colors) and size (from support); .cyjs writes Cytoscape JSON with positions; .csv and .xlsx write node and edge tables (<name>_nodes.csv/<name>_edges.csv or two sheets); .dot writes Graphviz.