O'Reilly logo

Neo4j in Action by Aleksa Vukotic and Nicki Watt with Tareq Abedrabbo, Dominic Fox, and Jonas Partner

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 8. Traversals in depth

This chapter covers

  • How traversal ordering impacts performance and memory footprint
  • Using expanders during traversal
  • Controlling the number of visits to each node using the uniqueness property
  • Improving graph query performance using bidirectional traversals

Writing efficient traversals is the key to successfully querying graph data. You learned the basic concepts of the Neo4j Traversal API in chapter 4. In this chapter we’re going to dig a little deeper into the inner workings of the Traversal API so you can learn how to solve the most complex graph problems in an efficient manner.

8.1. Traversal ordering

Every time a traverser visits a node, it needs to make a decision about which relationship to follow ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required