diff options
Diffstat (limited to 'examples/graph/atlas.py')
-rw-r--r-- | examples/graph/atlas.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/graph/atlas.py b/examples/graph/atlas.py index 73231c3a..7aca6cb8 100644 --- a/examples/graph/atlas.py +++ b/examples/graph/atlas.py @@ -58,9 +58,9 @@ if __name__ == '__main__': G=atlas6() - print "graph has %d nodes with %d edges"\ - %(nx.number_of_nodes(G),nx.number_of_edges(G)) - print nx.number_connected_components(G),"connected components" + print("graph has %d nodes with %d edges"\ + %(nx.number_of_nodes(G),nx.number_of_edges(G))) + print(nx.number_connected_components(G),"connected components") try: |