Last active
March 27, 2017 16:22
-
-
Save suellenstringer-hye/3e91a19c317acd660d71 to your computer and use it in GitHub Desktop.
scworkshop
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
= 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