
Neo4j Graph Data Modelling
By :

In Neo4j, we use a property graph model to represent information. The property graph model is an extension of the graphs from mathematics. The following figure gives an example of how data from Figure 1.1 can be represented in Neo4j:
Figure 1.2: Nodes, relationships and properties
The preceding figure introduces the following concepts that we use to model a property graph:
This property graph model allows us to model data as close to the real world as possible.
The resultant model is simpler and more expressive. It also explicitly calls out relationships. In contrast to an RDBMS, which uses foreign keys to imply relationships, having them explicitly defined allows us to retrieve data by traversing relationships to find the information we need. This is a deliberate, practical algorithmic approach that uses the connectedness of data, rather than relying on some index lookups or joins to find the related data. Explicit relationships also make the property graph model a natural fit for most problem domains, as they are interconnected.
Change the font size
Change margin width
Change background colour