Tuesday, January 17, 2017

write graph dot networkx

write graph to dot in NetworkX:
 
nx.write_dot(G,'graph.dot')
 
than convert to svg (png doesn't work, don't know why) 
 
dot -Tsvg graph.dot > graph.svg

No comments: