yifan-h / CS-GNN

Measuring and Improving the Use of Graph Information in Graph Neural Networks
MIT License
82 stars 10 forks source link

AttributeError: 'Graph' object has no attribute 'selfloop_edges' #6

Closed Aaron1993 closed 3 years ago

Aaron1993 commented 3 years ago

Hi. yifan, sorry to disturb you again. There is a error AttributeError: 'Graph' object has no attribute 'selfloop_edges' in utils.py: G.remove_edges_from(G.selfloop_edges()), How can i to solve it? Thanks.

yifan-h commented 3 years ago

Hi Aaron,

this is also a version issue of networkx. You may check it here and try "G.remove_edges_from(nx.selfloop_edges(G))".