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

LPA: ValueError: max() arg is an empty sequence #9

Open
javeme opened this issue Sep 28, 2018 · 2 comments · May be fixed by #10
Open

LPA: ValueError: max() arg is an empty sequence #9

javeme opened this issue Sep 28, 2018 · 2 comments · May be fixed by #10

Comments

@javeme
Copy link

javeme commented Sep 28, 2018

It will throw ValueError when calling LPA.get_max_neighbor_label() with isolated vertex

javeme added a commit to javeme/CommunityDetection that referenced this issue Sep 28, 2018
max(m.itervalues()) will raise ValueError when calling LPA.get_max_neighbor_label()
with a parameter isolated vertex, which has no neighbors.
It is reasonable to return label of the vertex itself if it's an isolated vertex.

fix zzz24512653#9
@javeme javeme linked a pull request Sep 28, 2018 that will close this issue
@XiaosongLis
Copy link

I meet the same problem when I use club dataset. However, when I use my own dataset, it works. Do you know why? Thanks

@javeme
Copy link
Author

javeme commented Feb 1, 2019

@XiaosongLis There should be no isolated vertices in your dataset, please see #10 (fixed this bug) for details.

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

Successfully merging a pull request may close this issue.

2 participants