# Failure running gds.graph.create

**URL:** <https://community.neo4j.com/t/failure-running-gds-graph-create/18978>\
**Category:** Graph Data Science / Graph Analytics\
**Created:** [May 20, 2020, 7:08pm UTC](https://community.neo4j.com/t/failure-running-gds-graph-create/18978 "2020-05-20T19:08:05Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![davidmakovoz](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/davidmakovoz/32/14112_2.png) [@davidmakovoz](https://community.neo4j.com/u/davidmakovoz)\
**Post date:** [May 20, 2020, 7:08pm UTC](https://community.neo4j.com/t/failure-running-gds-graph-create/18978/1 "2020-05-20T19:08:05Z")

</div>

I'm using the following  
Neo4j Browser version: 4.0.5  
Neo4j Server version: [4.0.2](https://github.com/neo4j/neo4j/wiki/Neo4j-4.0-changelog#402) (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:

```auto
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:

```auto
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.

---

<div class="post-metadata">

**Author:** ![Cobra](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/cobra/32/35243_2.png) [@Cobra](https://community.neo4j.com/u/Cobra)\
**Post date:** [May 21, 2020, 1:04pm UTC](https://community.neo4j.com/t/failure-running-gds-graph-create/18978/2 "2020-05-21T13:04:49Z")

</div>

Hello @davidmakovoz,

Which version of the GDS library did you installed on Neo4j Server?  
You must use: GDS 1.2.0 ([GitHub - neo4j/graph-data-science: Source code for the Neo4j Graph Data Science library of graph algorithms.](https://github.com/neo4j/graph-data-science)) 🙂

Regards,  
Cobra

---

<div class="post-metadata">

**Author:** ![davidmakovoz](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/davidmakovoz/32/14112_2.png) [@davidmakovoz](https://community.neo4j.com/u/davidmakovoz)\
**Post date:** [May 21, 2020, 5:01pm UTC](https://community.neo4j.com/t/failure-running-gds-graph-create/18978/3 "2020-05-21T17:01:43Z")

</div>

> [@davidmakovoz](#):
>
> `YIELD graphName, nodeCount, relationshipCount, createMillis;`

Thank you, Maxime!! It solved the problem.

---

<div class="post-metadata">

**Author:** ![Cobra](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/cobra/32/35243_2.png) [@Cobra](https://community.neo4j.com/u/Cobra)\
**Post date:** [May 21, 2020, 5:02pm UTC](https://community.neo4j.com/t/failure-running-gds-graph-create/18978/4 "2020-05-21T17:02:47Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![swaroopmeduri242](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/swaroopmeduri242/32/18783_2.png) [@swaroopmeduri242](https://community.neo4j.com/u/swaroopmeduri242)\
**Post date:** [July 13, 2021, 8:59am UTC](https://community.neo4j.com/t/failure-running-gds-graph-create/18978/5 "2021-07-13T08:59:40Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![karankajrolkar](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/karankajrolkar/32/19929_2.png) [@karankajrolkar](https://community.neo4j.com/u/karankajrolkar)\
**Post date:** [September 6, 2021, 8:11am UTC](https://community.neo4j.com/t/failure-running-gds-graph-create/18978/6 "2021-09-06T08:11:22Z")

</div>

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

> **[GitHub - neo4j/graph-data-science: Source code for the Neo4j Graph Data...](https://github.com/neo4j/graph-data-science)**
>
> Source code for the Neo4j Graph Data Science library of graph algorithms. - GitHub - neo4j/graph-data-science: Source code for the Neo4j Graph Data Science library of graph algorithms.

**# 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|
