zzz24512653 / CommunityDetection

Implements of community detection algorithms
357 stars 174 forks source link

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

Open javeme opened 6 years ago

javeme commented 6 years ago

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

XiaosongLis commented 5 years ago

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 commented 5 years ago

@XiaosongLis There should be no isolated vertices in your dataset, please see https://github.com/zzz24512653/CommunityDetection/pull/10 (fixed this bug) for details.