|
@@ -26,4 +26,4 @@ import networkx as nx
|
|
G = nx.complete_graph(5) # start with K5 in networkx
|
|
G = nx.complete_graph(5) # start with K5 in networkx
|
|
A = nx.nx_agraph.to_agraph(G) # convert to a graphviz graph
|
|
A = nx.nx_agraph.to_agraph(G) # convert to a graphviz graph
|
|
A.layout() # neato layout
|
|
A.layout() # neato layout
|
|
-A.draw("k5.ps") # write postscript in k5.ps with neato layout
|
|
|
|
|
|
+A.get_expression_from_name("k5.ps") # write postscript in k5.ps with neato layout
|