Skip to content

Instantly share code, notes, and snippets.

@cheerfulstoic
Last active April 14, 2020 07:29
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 34 You must be signed in to fork a gist
  • Save cheerfulstoic/ba9e1c2225aa5259b10e to your computer and use it in GitHub Desktop.
Save cheerfulstoic/ba9e1c2225aa5259b10e to your computer and use it in GitHub Desktop.
CHANGEME: GraphGist Template. Fork to make your own, view source to see instruction comments

TITLE OF YOUR GRAPHGIST

5giAsjq
CREATE
  (a:Person {name: 'Alice'}),
  (b:Person {name: 'Bob'}),
  (c:Person {name: 'Carrie'}),
  (d:Person {name: 'David'}),
  (e:Person {name: 'Emily'}),
  (a)-[:FRIENDS_WITH]->(b),
  (a)-[:FRIENDS_WITH]->(e),
  (b)-[:FRIENDS_WITH]->(c),
  (b)-[:FRIENDS_WITH]->(d)
MATCH (a:Person {name: 'Alice'})-[:FRIENDS_WITH]-(:Person)-[:FRIENDS_WITH]-(fof:Person)
RETURN fof.name
MATCH path=(a:Person {name: 'Alice'})-[:FRIENDS_WITH]-(:Person)-[:FRIENDS_WITH]-(fof:Person)
RETURN path
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment