Description Usage Arguments Details Examples
Delete node or relationship object(s) from the graph.
1 |
... |
A list of entities to delete. |
Nodes with incoming or outgoing relationships cannot be deleted. All incoming and outgoing relationships need to be deleted before the node can be deleted.
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## Not run:
graph = startGraph("http://localhost:7474/db/data/")
clear(graph)
alice = createNode(graph, name = "Alice")
bob = createNode(graph, name = "Bob")
rel = createRel(alice, "WORKS_WITH", bob)
delete(rel)
delete(alice, bob)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.