Skip to content

Instantly share code, notes, and snippets.

@schwarzeszeux
Last active October 27, 2015 10:24
Show Gist options
  • Save schwarzeszeux/6bdbee49760e163de6ea to your computer and use it in GitHub Desktop.
Save schwarzeszeux/6bdbee49760e163de6ea to your computer and use it in GitHub Desktop.
//hide
//setup
[source,cypher]
----
create (`Test`:class {name:'Test'})
create (`Foo`:class {name:'Foo'})
create (`Test.run`:method {name:'run'})
create (`Foo.run`:method {name:'run'})
create (`test.mp`:package {name:'test.mp'})
CREATE (`Test`)-[:child]->(`test.mp`),
(`Foo.run`)-[:method]->(`Foo`),
(`Test.run`)-[:method]->(`Test`),
(`Test.run`)-[:call]->(`Foo.run`),
(`Foo`)-[:child]->(`test.mp`)
RETURN *
LIMIT 50
----
//graph_result
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment