adidier17 / AuthorRank

A modification of PageRank to find the most prestigious authors in a scientific collaboration network.
MIT License
16 stars 7 forks source link

[MRG] - Fix/zero division error #16

Closed vc1492a closed 4 years ago

vc1492a commented 4 years ago

There's a slight penalty in the level of coverage. It seems that the ZeroDivisionError handler is never invoked in utils.py as part of the tests. Looking into it.

vc1492a commented 4 years ago

Identified the source of the ZeroDivisionError as AuthorRank scores being identical in some rare edge cases. When this situation occurs, authors are now given an identical score of 1.0. It is up to users of AuthorRank to interpret how to use this information in their analyses / products / visualizations.

I'll be merging this PR into the dev branch.