Database Reference
In-Depth Information
//this is a user
}
Note
With this strategy, finding all nodes of a given type (such as all movies) by property re-
quires using indexes, which we'll cover in chapter 5 .
Figure 3.11 illustrates the graph with the type property set for each node.
Figure 3.11. Nodes using the type property strategy
You're almost there. All that's left to do is create relationships from users to the movies
they like.
3.2.5. Adding properties to relationships
To make the social network graph complete, all you need to add is the relationship (called
HAS_SEEN ) between users and movies they rated. The HAS_SEEN relationship will start
 
Search WWH ::




Custom Search