Database Reference
In-Depth Information
3.2.4. Node type strategies
The next step in the example is to add movies, which will be rated by the users, to the
graph. You're going to add three movie nodes, following the same pattern used to add
users earlier. The following listing illustrates the use of the Neo4j Core Java API to add
nodes that represent movies.
Listing 3.7. Creating movie nodes using Neo4j Core Java API
Figure 3.10 illustrates the graph at this stage.
Figure 3.10. Graph with nodes representing users and movies
 
Search WWH ::




Custom Search