Skip to content

Instantly share code, notes, and snippets.

@brownht1
Last active May 1, 2017 20:58
Show Gist options
  • Save brownht1/e61c19828062169c92eb to your computer and use it in GitHub Desktop.
Save brownht1/e61c19828062169c92eb to your computer and use it in GitHub Desktop.
= MENTORS AS SEPARATE NODES
=== OUR DATASET
[source, cypher]
----
CREATE
//People
(trautwein:Person{name:'Paul Trautwein'}),
//Books
(rough_rider:Book{name:'Rough Rider'}),
//Publishers
(nexus:Publisher{name:'Nexus Press'}),
//Places
(mount_saint_marys:Place{name:'Mount Saint Marys University'}),
(GA:Place{name:'GA'}),
//WROTE
(trautwein)-[:WROTE]->(rough_rider),
//PUBLISHED_BY
(rough_rider)-[:PUBLISHED_BY]->(nexus),
//PUBLISHED_IN
(rough_rider)-[:PUBLISHED_IN]->(GA),
//TEACHES_AT
(trautwein)-[:TEACHES_AT]->(mount_saint_marys)
----
//graph
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment