Learn R Programming

RNeo4j (version 1.6.4)

addLabel: Node Labels

Description

Add a label or multiple labels to an existing node object.

Usage

addLabel(node, ...)

Arguments

node
A node object.
...
A character vector.

See Also

getLabel, dropLabel

Examples

Run this code
## Not run: 
# graph = startGraph("http://localhost:7474/db/data/")
# clear(graph)
# 
# alice = createNode(graph, name = "Alice")
# bob = createNode(graph, name = "Bob")
# 
# addLabel(alice, "Person")
# addLabel(bob, c("Person", "Student"))
# 
# alice
# bob
# ## End(Not run)

Run the code above in your browser using DataLab