createNode: Nodes

Description Usage Arguments Value Examples

Description

Create a node in the graph with the given label and properties.

Usage

1
createNode(graph, .label = character(), ...)

Arguments

graph

A graph object.

.label

A character string.

...

A named list. Node properties in the form key = value.

Value

A node object.

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)

bob = createNode(graph, "Person", name = "Bob", age = 24, kids = c("Jenny", "Larry"))
charles = createNode(graph, c("Person", "Student"), name = "Charles", age = 21)

bob
charles

props = list(name="David", age = 26)
david = createNode(graph, "Person", props)

david

## End(Not run)


Search within the RNeo4j package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.