Traceback (most recent call last):


 "C:/Users/hurun/PycharmProjects/GEM/Example1.py", line 47, in <module>

print ('Num nodes: %d, num edges: %d' % (G.number_of_nodes(), G.number_of_edges()))


 "C:\Users\hurun\AppData\Local\Programs\Python\Python36\lib\site-packages\networkx\classes\graph.py", line 780, in number_of_nodes

return len(self._node)
AttributeError: 'DiGraph' object has no attribute '_node'

Traceback (most recent call last):


 "c:\users\samid\mypy\lib\site.py", line 769, in <module>

main()


 "c:\users\samid\mypy\lib\site.py", line 746, in main

paths_in_sys = addsitepackages(paths_in_sys)


 "c:\users\samid\mypy\lib\site.py", line 279, in addsitepackages

addsitedir(sitedir, known_paths)


 "c:\users\samid\mypy\lib\site.py", line 202, in addsitedir

addpackage(sitedir, name, known_paths)


 "c:\users\samid\mypy\lib\site.py", line 170, in addpackage

exec(line)


 "<string>", line 1, in <module>


 "c:\users\samid\mypy\lib\site-packages\win32\lib\pywin32_bootstrap.py", line 14, in <module>

for maybe in site.getsitepackages():

AttributeError: module 'site' has no attribute 'getsitepackages'
