Showing results for 
Search instead for 
Did you mean: 

GDS Eigenvector Fails: java.lang.ArrayIndexOutOfBoundsException


I'm using GDS version 2.0.4 and trying to calculate the eigenvector for a graph projection "graphFull". I can calculate other centralities on the projection without any issues, and I have no problem when I change Neo4j databases (and projections).However, when I try to calculate the eigenvector for my current Neo4j database:


CALL gds.eigenvector.mutate("graphFull", {mutateProperty:"eigenvector"})

it fails and throws the following error:

Failed to invoke procedure `gds.eigenvector.mutate`: Caused by: java.lang.ArrayIndexOutOfBoundsException: The value 6.031592927298128E-170 is out of bounds for histogram, current covered range [7.275957614183426E-12, 2.44140625E-4) cannot be extended any further.
Caused by: java.lang.ArrayIndexOutOfBoundsException: Cannot resize histogram covered range beyond (1L << 63) / (1L << 17) - 1.
Caused by: java.lang.ArrayIndexOutOfBoundsException: Operation would overflow, would discard recorded value counts

The value is clearly out of bounds. Is there a way I can set the bounds, or the precision of the results such that the calculated/returned value stays within the limits?


can you first try the most recent version of GDS (2.1.12) there were a number of ArrayIndexOutOfBoundsException fixes recently.

Please let us know if it persists best with a github issue: