addLabel: Node Labels

Description Usage Arguments See Also Examples

View source: R/addLabel.R

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)

RNeo4j documentation built on May 29, 2017, 4:01 p.m.

Related to addLabel in RNeo4j...