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

Option to return graph which represents direct co-authorships #11

Closed vc1492a closed 4 years ago

vc1492a commented 4 years ago

The AuthorRank methodology constructs a weighted directed-graph as opposed to an undirected, non-weighted graph representing direct co-authorship between authors within a set of documents which is easier for interpretation in many cases. It may be helpful to consider adding an option to return an undirected graph for use in visualization or subsequent analysis.

vc1492a commented 4 years ago

This issue is fixed in the latest version pushed to the dev branch. More specifically:

author_ids = [tuple(d.values()) for d in flattened_list]

on line 70 should have been

author_ids = [tuple(d.values()) for d in doc_authors[doc]]