Skip to content
Snippets Groups Projects
Commit 8f480111 authored by Lionel GUEZ's avatar Lionel GUEZ
Browse files

Print sorted node data

For easier comparisons.
parent 100e0314
No related branches found
No related tags found
No related merge requests found
...@@ -24,6 +24,6 @@ for n in G: ...@@ -24,6 +24,6 @@ for n in G:
G.add_edge(n2, n3) G.add_edge(n2, n3)
G.remove_nodes_from(nbunch) G.remove_nodes_from(nbunch)
print(G.nodes.data()) for k in sorted(G.nodes): print(k, G.nodes[k])
A = nx_agraph.to_agraph(G) A = nx_agraph.to_agraph(G)
A.write(sys.argv[2]) A.write(sys.argv[2])
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment