Skip to content

Instantly share code, notes, and snippets.

@ikwattro
Last active September 11, 2021 13:45
Show Gist options
  • Save ikwattro/f99c1ed085673065fcb4e850526ccd49 to your computer and use it in GitHub Desktop.
Save ikwattro/f99c1ed085673065fcb4e850526ccd49 to your computer and use it in GitHub Desktop.
CREATE
(zhen:Person {name: 'Zhen'}),
(praveena:Person {name: 'Praveena'}),
(michael:Person {name: 'Michael'}),
(arya:Person {name: 'Arya'}),
(karin:Person {name: 'Karin'}),
(zhen)-[:FRIENDS]->(arya),
(zhen)-[:FRIENDS]->(praveena),
(praveena)-[:WORKS_WITH]->(karin),
(praveena)-[:FRIENDS]->(michael),
(michael)-[:WORKS_WITH]->(karin),
(arya)-[:FRIENDS]->(karin)
{
"kind": "Database",
"name": "adar",
"dropIfExists": true,
"indexes": {
"fulltext": [
{
"labels": [
"Person"
],
"properties": [
"name"
],
"name": "Person"
}
]
},
"constraints": {
"unique": [
{
"label": "Person",
"property": "name"
}
]
},
"seeds": ["https://gist.githubusercontent.com/ikwattro/f99c1ed085673065fcb4e850526ccd49/raw/ab9b7378c6a0c2eca805fddc7b16134039709bf2/adamic-adar-demo.cypher"]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment