corrected the code to get the graph, or at node size of 10000
add os.environ support