Learn R Programming

RNeo4j (version 1.6.4)

startGraph: Connect to the Database

Description

Establish a connection to Neo4j.

Usage

startGraph(url, username = character(), password = character(), opts = list())

Arguments

url
A character string.
username
A character string. If authentication is enabled, your username.
password
A character string. If authentication is enabled, your password.
opts
A named list. Optional HTTP settings.

Value

A graph object.

Examples

Run this code
## Not run: 
# graph = startGraph("http://localhost:7474/db/data/")
# 
# graph = startGraph("http://localhost:7474/db/data/",
#                    username = "neo4j",
#                    password = "password")
# 
# graph = startGraph("http://localhost:7474/db/data/",
#                    opts = list(timeout=3))
# ## End(Not run)

Run the code above in your browser using DataLab