3 Running basic and recursive traversals

This chapter covers

  • Navigating the structure of a graph
  • Performing filtering operations with traversals
  • Using recursive traversals

With our graph data model in hand, the next three chapters focus on how to navigate through our graph and how to return data. In this chapter, we’ll start by filtering and navigating edges, the fundamental building blocks of graph traversals. We then extend these concepts to cover a powerful feature of graphs: the ability to easily write recursive queries. Additionally, we examine how to leverage these techniques to answer common graph questions, such as how people are connected in social networks.

Throughout these next three chapters, we’ll use the social network use case ...

Get Graph Databases in Action now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.