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

from_numpy_matrix() is ambiguous when edges have weight 0 #100

Open
Kuifje02 opened this issue Jun 6, 2021 · 1 comment
Open

from_numpy_matrix() is ambiguous when edges have weight 0 #100

Kuifje02 opened this issue Jun 6, 2021 · 1 comment
Assignees
Labels
documentation Improvements or additions to documentation invalid This doesn't seem right

Comments

@Kuifje02
Copy link
Owner

Kuifje02 commented Jun 6, 2021

When using the networkx.from_numpy_matrix() method, there is a problem with edges with weight 0. Such edges are not created.

Should put a warning in the docs.

A dirty work around would be to set the weight to epsilon ~0.001. Needs more investigation.

@Kuifje02 Kuifje02 added documentation Improvements or additions to documentation invalid This doesn't seem right labels Jun 6, 2021
@Kuifje02 Kuifje02 self-assigned this Jun 6, 2021
@Kuifje02
Copy link
Owner Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

1 participant