Skip to content

Instantly share code, notes, and snippets.

@akollegger
Forked from kbastani/gist:1f278795b122cff09fd2
Last active August 29, 2015 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akollegger/c4e5dc1654025628f979 to your computer and use it in GitHub Desktop.
Save akollegger/c4e5dc1654025628f979 to your computer and use it in GitHub Desktop.
= Neo4j Graph Days =
:neo4j-version: 2.0.1
:author: Kenny Bastani
:bastardizer: Andreas Kollegger
:twitter: @kennybastani
== Create sample dataset
// setup
// hide
[source,cypher]
----
MERGE (p1:Person {name:"PV"})
MERGE (p2:Person {name:"SUJ"})
MERGE (p3:Person {name:"Dave"})
MERGE (p4:Person {name:"GA"})
MERGE (t1:Table {name:"Table 1"})
MERGE (p1)-[:AT_TABLE]->(t1)
MERGE (p2)-[:AT_TABLE]->(t1)
MERGE (p3)-[:AT_TABLE]->(t1)
MERGE (p4)-[:AT_TABLE]->(t1)
----
//graph
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment