Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the code problem in utils #196

Open
MathsCode opened this issue Mar 21, 2023 · 1 comment
Open

the code problem in utils #196

MathsCode opened this issue Mar 21, 2023 · 1 comment

Comments

@MathsCode
Copy link

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']):

?

@ashiqimranintel
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants