Skip to content

Instantly share code, notes, and snippets.

@suellenstringer-hye
Last active March 27, 2017 16:22
Show Gist options
  • Save suellenstringer-hye/3e91a19c317acd660d71 to your computer and use it in GitHub Desktop.
Save suellenstringer-hye/3e91a19c317acd660d71 to your computer and use it in GitHub Desktop.
scworkshop
= Network analysis with Neo4j
:neo4j-version: 2.1.0
:author: Suellen Stringer-Hye
:twitter: @suellenshye
:tags: domain:education, use-case:network analysis
//graph
=== OUR DATASET
[source, cypher]
----
CREATE
//People
(a:Person{name:'Donald Trump'}),
(b:Person{name:'Barack Obama'}),
(c:Person{name:'Hilary Clinton'}),
//Places
(d:Location{name:'New York'}),
(e:Location{name:'Washington DC'}),
//Relationships
(a)-[:OPPOSES]->(b),
(c)-[:OPPOSES]->(a),
(a)-[:LIVES_IN]->(d),
(b)-[:LIVES_IN]->(e)
----
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment