GraphSAGE icon indicating copy to clipboard operation
GraphSAGE copied to clipboard

the code problem in utils

Open MathsCode opened this issue 2 years ago • 1 comments

the line 56 and 57 of utils.py

 if (G.node[edge[0]]['val'] or G.node[edge[1]]['val'] or
            G.node[edge[0]]['test'] or G.node[edge[1]]['test']):

may be

 if (G.nodes[edge[0]]['val'] or G.nodes[edge[1]]['val'] or
            G.nodes[edge[0]]['test'] or G.nodes[edge[1]]['test']):

?

MathsCode avatar Mar 21 '23 09:03 MathsCode

Yes, I had this issue, with networkx (2.x and greater), your change will work

ashiqimranintel avatar Mar 28 '23 23:03 ashiqimranintel