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

Weighted graph mistakes #5

Open
ghost opened this issue Aug 10, 2020 · 1 comment
Open

Weighted graph mistakes #5

ghost opened this issue Aug 10, 2020 · 1 comment

Comments

@ghost
Copy link

ghost commented Aug 10, 2020

Dear professiors Marinka Zitnik and Jure Leskovec
I get wrong messages when I want to run Weighted graph.The messages is "TypeError: read_edgelist() got an unexpected keyword argument 'inodetype' “. and I explored the source code. I find there is a mistake in read_net function which in utility.py file
The source code is " if weighted: G = nx.read_edgelist(inodetype=int, data=(('weight', float),), create_using=nx.DiGraph()) " .It may be fixed as if weighted: G = nx.read_edgelist(fname, nodetype=int, data=(('weight', float),), create_using=nx.DiGraph())
sincerely
He

@marinkaz
Copy link
Member

Thank you for your comment! If you can make a pull request with this issue fixed, we would be excited to merge the request.

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

1 participant