neo4j-contrib / neo4j-graph-algorithms

Efficient Graph Algorithms for Neo4j
https://github.com/neo4j/graph-data-science/
GNU General Public License v3.0
770 stars 194 forks source link

Add a personalization vector option for personalized pagerank? #720

Open ddu1 opened 5 years ago

ddu1 commented 5 years ago

Maybe I missed it in the documentation, but I couldn't find an option to pass in a non-evenly-distributed personalization vector to the ppr algorithm, other than a list of sourceNodes (which implies evenly-distributed?) :

https://github.com/neo4j-contrib/neo4j-graph-algorithms/blob/3.4.7.0/algo/src/main/java/org/neo4j/graphalgo/PageRankProc.java#L196

It would be a very nice feature to have, similar to what is implemented here.

ghost commented 5 years ago

I agree. I believe this is already discussed in #271 , where I suggest passing a named reference to a probability property on the nodes.