getType: Relationship Types

Description Usage Arguments Value Examples

Description

Get the type of a relationship object or all relationship types in the graph.

Usage

1
getType(object)

Arguments

object

A relationship or graph object.

Value

A character vector.

Examples

 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)

nicolewhite/RNeo4j documentation built on May 23, 2019, 5:09 p.m.