O'Reilly logo

Neo4j Graph Data Modeling by Mahesh Lal

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 3. Formulating an Itinerary

In the previous chapter, you learned to visualize a domain as a graph and how to feed it into Neo4j using Cypher. This chapter will revolve around using that data to get the desired information. This can be done using Cypher to query the graph and return the desired data. You will learn the following:

  • Querying using Cypher for variable length relationships
  • Using functions to extract data from a collection of nodes
  • What operations are suited for Cypher

Creating an itinerary from flights and cities

We modelled cities and flights in the previous chapter. In this chapter, our primary focus will be on creating an itinerary from the graph we have. A few considerations while we are fetching the itinerary are as follows: ...

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