Skip to content

Instantly share code, notes, and snippets.

@freeeve
Forked from anonymous/gist:4709253
Last active December 12, 2015 03:48
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 freeeve/4709319 to your computer and use it in GitHub Desktop.
Save freeeve/4709319 to your computer and use it in GitHub Desktop.
start a=node(3), b=node(1)
match p=a-[r:KNOWS*..3]->b
with p, head(relationships(p)) as h
where all(x in tail(relationships(p))
where x.type = 'all')
and h.type='own'
return p
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment