Description Usage Arguments Value Examples
Get the type of a relationship object or all relationship types in the graph.
1 | getType(object)
|
object |
A relationship or graph object. |
A character vector.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ## Not run:
graph = startGraph("http://localhost:7474/db/data/")
clear(graph)
alice = createNode(graph, "Person", name = "Alice")
bob = createNode(graph, "Person", name = "Bob")
charles = createNode(graph, "Person", name = "Charles")
createRel(bob, "WORKS_WITH", charles)
rel = createRel(alice, "KNOWS", bob)
getType(rel)
getType(graph)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.