Node Labels

Description

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

Usage

1
addLabel(node, ...)

Arguments

node

A node object.

...

A character vector.

See Also

getLabel, dropLabel

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## 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)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.