summaryrefslogtreecommitdiff
path: root/examples/graph
diff options
context:
space:
mode:
authorAric Hagberg <aric.hagberg@gmail.com>2014-03-28 10:13:12 -0600
committerAric Hagberg <aric.hagberg@gmail.com>2014-03-28 10:13:12 -0600
commit05f85a7e0f68a7c8afd8aecf3da2b2df407c6857 (patch)
tree9dab5547935808d67020c732f2e375ce37b5d4c2 /examples/graph
parent5bfe221f98b71015d21d277cb17d75838ac2e96e (diff)
downloadnetworkx-05f85a7e0f68a7c8afd8aecf3da2b2df407c6857.tar.gz
Explicitly import graph atlas
Diffstat (limited to 'examples/graph')
-rw-r--r--examples/graph/atlas.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/graph/atlas.py b/examples/graph/atlas.py
index 7aca6cb8..ce55efac 100644
--- a/examples/graph/atlas.py
+++ b/examples/graph/atlas.py
@@ -12,8 +12,7 @@ __author__ = """Aric Hagberg (hagberg@lanl.gov)"""
# BSD license.
import networkx as nx
-#from networkx import *
-#from networkx.generators.atlas import *
+from networkx.generators.atlas import *
from networkx.algorithms.isomorphism.isomorph import graph_could_be_isomorphic as isomorphic
import random
@@ -22,7 +21,7 @@ def atlas6():
Attempt to check for isomorphisms and remove.
"""
- Atlas=nx.graph_atlas_g()[0:208] # 208
+ Atlas=graph_atlas_g()[0:208] # 208
# remove isolated nodes, only connected graphs are left
U=nx.Graph() # graph for union of all graphs in atlas
for G in Atlas: