# How to get started with graph traversal in python

**URL:** <https://community.neo4j.com/t/how-to-get-started-with-graph-traversal-in-python/62786>\
**Category:** Python\
**Created:** [June 5, 2023, 3:37pm UTC](https://community.neo4j.com/t/how-to-get-started-with-graph-traversal-in-python/62786 "2023-06-05T15:37:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![eyosias24](https://avatars.discourse-cdn.com/v4/letter/e/b487fb/32.png) [@eyosias24](https://community.neo4j.com/u/eyosias24)\
**Post date:** [June 5, 2023, 3:37pm UTC](https://community.neo4j.com/t/how-to-get-started-with-graph-traversal-in-python/62786/1 "2023-06-05T15:37:49Z")

</div>

I want to write a simple python script that performs graph traversal. However, i couldn't find any resource that can help me get start. The only traversing related documentation i can find is implemented in Java using TraversalDescription. Is the same feature available for python drive?

---

<div class="post-metadata">

**Author:** ![florent\_biville](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/florent_biville/32/14205_2.png) [@florent\_biville](https://community.neo4j.com/u/florent_biville)\
**Post date:** [June 5, 2023, 4:05pm UTC](https://community.neo4j.com/t/how-to-get-started-with-graph-traversal-in-python/62786/2 "2023-06-05T16:05:15Z")

</div>

`TraversalDescription` is a Java API only available when you use Neo4j as an embedded database.  
Embedded Neo4j is only possible in a Java Virtual Machine.

In Python, your only option is to use the Neo4j Python driver and use it to execute Cypher queries.

---

<div class="post-metadata">

**Author:** ![rouven\_bauer](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/rouven_bauer/32/16547_2.png) [@rouven\_bauer](https://community.neo4j.com/u/rouven_bauer)\
**Post date:** [June 5, 2023, 4:35pm UTC](https://community.neo4j.com/t/how-to-get-started-with-graph-traversal-in-python/62786/3 "2023-06-05T16:35:45Z")

</div>

[Neo4j Traversal API vs. Cypher - Stack Overflow](https://stackoverflow.com/questions/28657178/neo4j-traversal-api-vs-cypher) this might be an interesting read to get you started.
