diff options
Diffstat (limited to 'examples/drawing/lanl_routes.py')
-rw-r--r-- | examples/drawing/lanl_routes.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/drawing/lanl_routes.py b/examples/drawing/lanl_routes.py index ec07491a..11903fa6 100644 --- a/examples/drawing/lanl_routes.py +++ b/examples/drawing/lanl_routes.py @@ -21,7 +21,7 @@ def lanl_graph(): try: fh=open('lanl_routes.edgelist','r') except IOError: - print "lanl.edges not found" + print("lanl.edges not found") raise G=nx.Graph() @@ -52,9 +52,9 @@ if __name__ == '__main__': G=lanl_graph() - 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") import matplotlib.pyplot as plt plt.figure(figsize=(8,8)) |