Chapter 2. Modeling Flights and Cities
We looked at what graphs are and what domains they might be suited for. Now, it is time to dive deeper into concepts that are related to graph databases and how we can go ahead and create our data in a graph. In this chapter, we will look at:
- How graphs can be used outside the social context modeling flights and cities for creating an itinerary
- Adding nodes, labels, properties, relationships, uniqueness constraints, and indices
Before we dive deep into modeling, we recommend that you download the code samples that you will need to run the examples in this chapter. The code can be downloaded from https://github.com/maheshlal2910/neo4j_graph_data_modelling.