## Not run:
# graph = startGraph("http://localhost:7474/db/data/")
# clear(graph)
#
# alice = createNode(graph, "Person", name = "Alice", age = 23)
# bob = createNode(graph, "Person", name = "Bob", age = 22)
# charles = createNode(graph, "Person", name = "Charles", age = 25)
#
# createRel(alice, "KNOWS", bob)
# createRel(alice, "KNOWS", charles)
#
# query = "MATCH p = (:Person {name:'Alice'})-[:KNOWS]->(:Person {name:'Bob'}) RETURN p"
#
# getSinglePath(graph, query)
#
# query = "MATCH p = (:Person {name:'Alice'})-[:KNOWS]->(:Person {name:{name}}) RETURN p"
#
# getSinglePath(graph, query, name = "Charles")
# ## End(Not run)
Run the code above in your browser using DataLab