I am a beginner to pytorch and DGL, and can anybody give any comments about the problem?
The code is downloaded from the tutorial website: https://docs.dgl.ai/tutorials/models/1_gnn/1_gcn.html
Traceback (most recent call last):
File “/home/hzhaoaf/anaconda2/envs/py35/lib/python3.5/site-packages/dgl/graph_index.py”, line 922, in create_graph_index
gi.from_networkx(graph_data)
File “/home/hzhaoaf/anaconda2/envs/py35/lib/python3.5/site-packages/dgl/graph_index.py”, line 660, in from_networkx
for e in nx_graph.edges:
TypeError: ‘method’ object is not iterable
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “1_gcn.py”, line 116, in
g, features, labels, mask = load_cora_data()
File “1_gcn.py”, line 108, in load_cora_data
g = DGLGraph(data.graph)
File “/home/hzhaoaf/anaconda2/envs/py35/lib/python3.5/site-packages/dgl/graph.py”, line 181, in init
self._graph = create_graph_index(graph_data, multigraph, readonly)
File “/home/hzhaoaf/anaconda2/envs/py35/lib/python3.5/site-packages/dgl/graph_index.py”, line 925, in create_graph_index
% type(graph_data))
dgl._ffi.base.DGLError: Error while creating graph from input of type “<class ‘networkx.classes.digraph.DiGraph’>”.