cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Failure running gds.graph.create

I'm using the following
Neo4j Browser version: 4.0.5
Neo4j Server version: 4.0.2 (community)

I am starting to use the gds library. The first thing I tried was gds.graph.create and ran into an error. I'm using the example from the documentation:

CALL gds.graph.create(
   'my-native-graph',
   'person',
   'LIKES'
)
YIELD graphName, nodeCount, relationshipCount, createMillis;

I created two nodes (:person) and one relationship (p1:person)-[:LIKES]->(p2:person)

When I ran the create graph procedure I get this error:

Neo.ClientError.Procedure.ProcedureCallFailed
Failed to invoke procedure `gds.graph.create`: Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.neo4j.graphalgo.config.GraphCreateFromStoreConfigImpl

I checked neo4j.log and debug.log and didn't see anything relevant there.

1 ACCEPTED SOLUTION

Hello @davidmakovoz,

Which version of the GDS library did you installed on Neo4j Server?
You must use: GDS 1.2.0 (https://github.com/neo4j/graph-data-science)

Regards,
Cobra

View solution in original post

5 REPLIES 5

Hello @davidmakovoz,

Which version of the GDS library did you installed on Neo4j Server?
You must use: GDS 1.2.0 (https://github.com/neo4j/graph-data-science)

Regards,
Cobra

Thank you, Maxime!! It solved the problem.

Nice, no problem, I'm happy to hear that:)

How did you resolved this issue, I'm also facing same error.

I'm using GDS version - 1.5.2 and community - 4.2.5

#Check for appropriate version for neo4j and GDS library from that git file

# first create a node and relationship
create (:Person{name:"Oliver Stone"})-[:LIKE]->(:Person{name:"Karan Kajrolkar"})

#Then try to create native projection

CALL gds.graph.create(
'my-native-graph',
'Person',
'LIKE'
)
YIELD graphName, nodeCount, relationshipCount, createMillis;

#O/P

graphName|nodeCount|relationshipCount|createMillis|

"my-native-graph"|2 |1|51|