Creating queries using traversals

DSE Graph can create complex queries that traverse the relationships of the graph structure. If the complex queries require real-time results, DSE Graph is the best product for discovering answers. Start with the Quick Start traversals that increase in complexity in a stepwise fashion. The examples shown here will continue with the food graph: f image::foodGraph.png[]

Additional complex Gremlin recipes can also be found at Apache TinkerPop Recipes.


Anatomy of a graph traversal

The anatomy of a graph traversal explores the results of each traversal step.

Using indexes

Using indexes for graph queries.

Using search indexes

Using search indexes for graph traversals.

Simple Traversals

Simple traversals can be complex, but not employ specialized techniques such as recursion or branching.

Geospatial traversals

Creating geospatial traversal queries.

Branching Traversals

Branching traversals allow decision points to be inserted into the traversal processing.

Recursive Traversals

Recursive traversals allow iterative processing over traversal paths.

Path Traversals

Path traversals map traversal steps to a location to use in the event that a previous location must be revisited.

Was this helpful?

Give Feedback

How can we improve the documentation?

© 2024 DataStax | Privacy policy | Terms of use

Apache, Apache Cassandra, Cassandra, Apache Tomcat, Tomcat, Apache Lucene, Apache Solr, Apache Hadoop, Hadoop, Apache Pulsar, Pulsar, Apache Spark, Spark, Apache TinkerPop, TinkerPop, Apache Kafka and Kafka are either registered trademarks or trademarks of the Apache Software Foundation or its subsidiaries in Canada, the United States and/or other countries. Kubernetes is the registered trademark of the Linux Foundation.

General Inquiries: +1 (650) 389-6000, info@datastax.com