Skip to content

Instantly share code, notes, and snippets.

@suellenstringer-hye
Last active April 9, 2024 15:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save suellenstringer-hye/36df9aaeadd87cdd1ecd952c3a5bab89 to your computer and use it in GitHub Desktop.
Save suellenstringer-hye/36df9aaeadd87cdd1ecd952c3a5bab89 to your computer and use it in GitHub Desktop.
Ancient Gods
= Ancient Gods Geneaology
:neo4j-version: 2.1.0
:author: Suellen Stringer-Hye
:twitter: @suellenshye
:tags: domain:education, use-case:geneaology
== Class Assignment
image::http://www.library.vanderbilt.edu/webimages/assets/gods2.gif[]
//graph
=== OUR DATASET
[source, cypher]
----
CREATE
//People
(chaos:Person{name:'Chaos'}),
(nyx:Person{name:'Nyx'}),
(erebus:Person{name:'Erebus'}),
//Relationships
(chaos)-[:WAS_HUSBAND_OF]->(nyx),
(nyx)-[:WAS_WIFE_OF]->(chaos),
(chaos)-[:WAS_FATHER_OF]->(erebus),
(nyx)-[:WAS_MOTHER_OF]->(erebus),
(erebus)-[:WAS_HUSBAND_OF]->(nyx)
----
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment