## Not run:
# graph = startGraph("http://localhost:7474/db/data/")
# clear(graph)
#
# addConstraint(graph, "Person", "name")
#
# createNode(graph, "Person", name = "Alice")
# createNode(graph, "Person", name = "Bob")
# try(createNode(graph, "Person", name = "Alice"))
# ## End(Not run)
Run the code above in your browser using DataLab