Skip to content

Instantly share code, notes, and snippets.

@chizmw
Forked from jexp/graph_gist_template.adoc
Created August 3, 2018 08:33
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 chizmw/54b69c5b2c72ccb23e75c692eeec130c to your computer and use it in GitHub Desktop.
Save chizmw/54b69c5b2c72ccb23e75c692eeec130c to your computer and use it in GitHub Desktop.
CHANGEME: GraphGist Template. Fork to make your own, view source to see instruction comments

REPLACEME: TITLE OF YOUR GRAPHGIST

Introduction

REPLACEME: Introductory text and domain model image.

5giAsjq

Setup

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)

REPLACEME: FIRST USECASE TITLE

MATCH (a:Person {name: 'Alice'})-[:FRIENDS_WITH]-(:Person)-[:FRIENDS_WITH]-(fof:Person)
RETURN fof.name as fof, count(*) as frequency

REPLACEME: SECOND USE-CASE TITLE

MATCH path=(a:Person {name: 'Alice'})-[:FRIENDS_WITH]-(:Person)-[:FRIENDS_WITH]-(fof:Person)
RETURN path, a, fof

REPLACEME: THIRD USE-CASE TITLE

Conclusions

REPLACEME: Offer a conclusion

Resources

REPLACEME: Link to resorces like data sources, further discussions,


Created by YOUR NAME - Twitter | Blog | LinkedIn

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