Databases Reference
In-Depth Information
Figure 3-9. Introducing an email node produces a star graph
Of course, in a real system there will be many more of these emails, each with its intricate
web of interactions for us to explore. It's quite easy to imagine that over time many more
CREATE statements are executed as the email server logs the interactions, like so (we've
omitted the START clauses for brevity):
CREATE (email_1 { id : '1' , content: 'email contents' }),
(bob)-[:SENT]->(email_1),
(email_1)-[:TO]->(charlie),
(email_1)-[:CC]->(davina),
(email_1)-[:CC]->(alice),
(email_1)-[:BCC]->(edward);
CREATE (email_2 { id : '2' , content: 'email contents' }),
(bob)-[:SENT]->(email_2),
(email_2)-[:TO]->(davina),
(email_2)-[:BCC]->(edward);
CREATE (email_3 { id : '3' , content: 'email contents' }),
(davina)-[:SENT]->(email_3),
(email_3)-[:TO]->(bob),
(email_3)-[:CC]->(edward);
CREATE (email_4 { id : '4' , content: 'email contents' }),
(charlie)-[:SENT]->(email_4),
(email_4)-[:TO]->(bob),
 
Search WWH ::




Custom Search