RNeo4j (version 1.6.4)

getLabel: Node Labels

Description

Get all node labels for a given node object or for the entire graph database.

Usage

getLabel(object)

Arguments

object
A graph or node object.

Value

A character vector.

See Also

addLabel, dropLabel

Examples

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

Run the code above in your browser using DataLab