Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

save networkx graph to json

# Save graph
nx.write_gml(G, "path_where_graph_should_be_saved.gml")

# Read graph
G = nx.read_gml('path_to_graph_graph.gml')
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #save #networkx #graph #json
ADD COMMENT
Topic
Name
9+9 =