Last active
May 25, 2022 15:58
-
-
Save tomasonjo/9777dcd688d687115f480863c0ef6165 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Pagerank centrality | |
pr = gds.pageRank.stream(G, nodeLabels=['User'], | |
relationshipTypes=['P2P'], relationshipWeightProperty='totalAmount') | |
pr['pagerank'] = pr['score'] | |
graph_features = graph_features.merge(pr[['nodeId', 'pagerank']], on='nodeId') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment