ArrayIndexOutOfBoundException when running Degree Centrality algorithm

Hi all,

When executing the Degree Centrality algorithm from the neo4j-graph-algorithms,

CALL'alias', 'co_authors', {direction:'BOTH', weightProperty: 'weight', write:true, writeProperty:'GraphProperty_weightedDegreeCentrality_coauthors'})
YIELD nodes, loadMillis, computeMillis, writeMillis;

I run into the following error:

Failed to invoke procedure ``: Caused by: java.lang.ArrayIndexOutOfBoundsException: Index 262144 out of bounds for length 262144

Below are some characteristics of the environment:

  • neo4j-community-3.5.12
  • neo4j-graph-algorithms-
  • apoc-
  • dbms.memory.heap.initial_size=8G
  • dbms.memory.heap.max_size=8G

Graph characteristics:

  • 624985 nodes
  • 3566981 edges

Thank you in advance for any pointers on how to solve this issue.


Please update your installation to the graph data science library 1.0. All ongoing feature work and bug fixes are released in that library.