Skip to content

Instantly share code, notes, and snippets.

@mneedham
Forked from tekiegirl/navigation.adoc
Last active August 29, 2015 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mneedham/9242119 to your computer and use it in GitHub Desktop.
Save mneedham/9242119 to your computer and use it in GitHub Desktop.

Learning dem graph gists

Awesome

Something something, graph gist

Graph Population

Click the + to see the full set-up Cypher script.

// friends data
MERGE (mark:Person {name: "Mark"})
MERGE (michael:Person {name: "Michael"})
MERGE (mark)-[:FRIENDS_WITH]->(michael)

Graph Visualisation

This shows the results of the above set-up script. For more info on graph visualisation see (link to skillz matter)

I want to be epic

some explanation

MATCH (p:Person)-[r]->()
RETURN p, r

Console

Click the green play button on query one to set up the database for the console, and have a go with your own queries. Back to top

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment