Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Neo4j Graph Data Modelling
  • Toc
  • feedback
Neo4j Graph Data Modelling

Neo4j Graph Data Modelling

By : Mahesh K Lal
3 (1)
close
Neo4j Graph Data Modelling

Neo4j Graph Data Modelling

3 (1)
By: Mahesh K Lal

Overview of this book

If you are a developer who wants to understand the fundamentals of modeling data in Neo4j and how it can be used to model full-fledged applications, then this book is for you. Some understanding of domain modeling may be advantageous but is not essential.
Table of Contents (11 chapters)
close
10
Index

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:

  • Even if there is no direct flight from city A to city B, most people are comfortable with two or less stopovers/changes of flights
  • If there is a change of flights or stopover involved, the stopover should be at least for two hours so that the travelers can change flights in spite of any unforeseen delays

Information and paths

In a graph, we discover information by traversing the nodes and relationships from some starting node or nodes. Collectively, the start node, the end node, the relationships, and intermediate nodes together consist of a path. We define the path using the node labels and relationship types. Writing queries with node labels and relationship types allows the query to be expressive.

Using Cypher to find a path

In...

bookmark search playlist font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete