Skip to content
This repository has been archived by the owner on Apr 22, 2020. It is now read-only.

algo.degree breaks when degree > 10000 #848

Closed
tomasonjo opened this issue Mar 23, 2019 · 1 comment
Closed

algo.degree breaks when degree > 10000 #848

tomasonjo opened this issue Mar 23, 2019 · 1 comment

Comments

@tomasonjo
Copy link
Collaborator

example graph:

UNWIND range(1,10005) as s
CREATE (:Node{id:s});

MATCH (n:Node)
WITH n limit 1
MATCH (m:Node)
WHERE id(n) <> id(m)
CREATE (m)-[:REL]->(n);

Run the algo:

CALL algo.degree.stream("Node", "REL", {direction: "incoming"})
YIELD nodeId, score
RETURN algo.getNodeById(nodeId).id AS name, score AS followers
ORDER BY followers DESC

Error:

Neo.ClientError.Procedure.ProcedureCallFailed: Failed to invoke procedure algo.degree.stream: Caused by: java.lang.ArrayIndexOutOfBoundsException: 10000

@mneedham
Copy link
Contributor

mneedham commented Apr 3, 2019 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants