DHGNN
DHGNN copied to clipboard
cora.py文件里的第85行报错:“AttributeError: 'Graph' object has no attribute 'adjacency_list'“
This is because the version of networkx used in this repo is a bit out of date, which is 1.11.
If you are using the version later than 2.0, you may change the edge_list = G.adjacency_list() in datasets/cora.py, line 85 to edge_list = G.adjacency().
The method adjacency_list() now is replaced by adjacency(). You may refer to this Link.
The following methods have changed:
Graph/MultiGraph
G.nodes()
G.edges()
G.neighbors()
G.adjacency_list() and G.adjacency_iter() to G.adjacency()
G.degree()
G.subgraph()
G.copy()
G.__class__() should be replaced with G.fresh_copy()
Actually, after you fix this problem, you still have to do some work on the following code debug, since the return format of this method is also changed.