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

Incorrect usage of e.directed #30

Open
tarunkle opened this issue Jul 9, 2018 · 3 comments
Open

Incorrect usage of e.directed #30

tarunkle opened this issue Jul 9, 2018 · 3 comments

Comments

@tarunkle
Copy link

tarunkle commented Jul 9, 2018

if e.directed() != graph.directed:

Hello,
The directed attribute of e is not a function it is a boolean attribute.
Here is the error I am getting:
File "/users/trunkle/anaconda2/lib/python2.7/site-packages/pygraphml/graphml_parser.py", line 67, in write
if e.directed() != graph.directed:
TypeError: 'bool' object is not callable

Suggest removing the parens () from directed on two lines, line 67 and line 68.
Works for me.
Thanks,
Tim.

@hadim
Copy link
Owner

hadim commented Nov 22, 2018

Thank you for the bug report.

Can you submit a PR to fix this?

@tarunkle
Copy link
Author

Hello,
Happy to help. Assume PR is pull request? Can you provide instructions or link to instructions?
Thanks,
Tim.

@hadim
Copy link
Owner

hadim commented Nov 24, 2018

Yes, PR means pull request. Here is a tutorial: https://help.github.com/articles/about-pull-requests/

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