Skip to content

Instantly share code, notes, and snippets.

@quisqualis
Forked from suellenstringer-hye/networkanalysisworkshop
Last active September 25, 2015 16:49
Show Gist options
  • Save quisqualis/9c991606419ff9c361d2 to your computer and use it in GitHub Desktop.
Save quisqualis/9c991606419ff9c361d2 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
//Map
(a:Map{name:'Province'}),
(b:Map{name:'City'}),
(c:Map{name:'Empire'}),
//Size
(d:Size{name:'Province'}),
(e:Size{name:'City'}),
(f:Size{name:'Empire'}),
//Relationships
(a)-[:OCCUPIED]->(b),
(c)-[:OCCUPIED]->(d),
(c)-[:OCCUPIED]->(f)
----
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment