PageRank with Log Scaler: "Negative values cannot be recorded"

Hey Sandro,
the underlying issue is in the computation of the centralityDistribution when using the write or mutate mode.
We always assumed, that the pageRank scores are positive, but by using a log scaler, the scores can get negative.

We will look into fixing the bug, but in the meantime you can use Call gds.pageRank.write({ nodeProjection: "Nutzer", relationshipProjection: "ANTWORTETE_AUF", writeProperty: "pageRank", scaler: "log" } ) YIELD ranIterations, nodePropertiesWritten (Basically everything can be yielded except centralityDistribution)

1 Like