Writing pageRank to graph and getting different results from algorithms versions. Queries are below. Old version of algorithm is 3.4.0.0, new versions 3.4.7.0 and 3.5.1.0 are returning different pageRank calculations. Using GameOfThrones data set (guide: "play data_science"), Varys shows up on old version pageRank list, but not on the list with new versions.
Query returning highest pagerank values:
MATCH (c:Character)
WITH c, [(c)-[r:INTERACTS1]-(other) | {character: other.name, weight: r.weight}] AS interactions
RETURN c.name, c.book1PageRank, c.book1BetweennessCentrality,
apoc.coll.sum([i in interactions | i.weight]) AS totalInteractions,
[i in apoc.coll.reverse(apoc.coll.sortMaps(interactions, 'weight'))[..5] | i.character] as charactersInteractedWith
ORDER BY c.book1PageRank DESC
LIMIT 10
Writing pageRank to graph and getting different results from algorithms versions. Queries are below. Old version of algorithm is 3.4.0.0, new versions 3.4.7.0 and 3.5.1.0 are returning different pageRank calculations. Using GameOfThrones data set (guide: "play data_science"), Varys shows up on old version pageRank list, but not on the list with new versions.
Write pagerank value: CALL algo.pageRank("Character", "INTERACTS1", {direction: "BOTH", writeProperty:'book1PageRank'})
Query returning highest pagerank values: MATCH (c:Character) WITH c, [(c)-[r:INTERACTS1]-(other) | {character: other.name, weight: r.weight}] AS interactions RETURN c.name, c.book1PageRank, c.book1BetweennessCentrality, apoc.coll.sum([i in interactions | i.weight]) AS totalInteractions, [i in apoc.coll.reverse(apoc.coll.sortMaps(interactions, 'weight'))[..5] | i.character] as charactersInteractedWith ORDER BY c.book1PageRank DESC LIMIT 10