Skip to content

Instantly share code, notes, and snippets.

@suellenstringer-hye
Last active February 26, 2020 21:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 15 You must be signed in to fork a gist
  • Save suellenstringer-hye/260be91b7c8ab2aeb905caa0abb483c6 to your computer and use it in GitHub Desktop.
Save suellenstringer-hye/260be91b7c8ab2aeb905caa0abb483c6 to your computer and use it in GitHub Desktop.
swp
= 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:'Employee1'}),
(b:Person{name:'Employee2'}),
(c:Person{name:'Employee3'}),
(f:Person{name:'Employee4'}),
//Department
(d:Department{name:'Sales'}),
(e:Department{name:'Research & Development'}),
//Relationships
(a)-[:WORKS_WITH]->(b),
(c)-[:WORKS_WITH]->(a),
(a)-[:IS_IN]->(d),
(b)-[:IS_IN]->(e),
(f)-[:IS_IN]->(d),
(f)-[:IS_BOSS]->(a)
----
=== Links ===
* http://www.library.vanderbilt.edu/webimages/hr.xslx/[HR csv file]
* http://www.graphenedb.com/[GrapheneDB]
* http://www.library.vanderbilt.edu/webimages/SWP.pptx/[Workshop Powerpoint]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment