Learn R Programming

RNeo4j (version 1.6.4)

incomingRels: Retrieve Relationships from Nodes

Description

Retreive a list of incoming relationship objects from a node object, optionally filtering by relationship type.

Usage

incomingRels(node, ...)

Arguments

node
A node object.
...
A character vector.

Value

A list of relationship objects.

See Also

outgoingRels

Examples

Run this code
## Not run: 
# graph = startGraph("http://localhost:7474/db/data/")
# clear(graph)
# 
# alice = createNode(graph, "Person", name = "Alice")
# bob = createNode(graph, "Person", name = "Bob")
# charles = createNode(graph, "Person", name = "Charles")
# david = createNode(graph, "Person", name = "David")
# 
# createRel(alice, "KNOWS", bob)
# createRel(alice, "KNOWS", charles)
# createRel(charles, "KNOWS", david)
# 
# createRel(alice, "WORKS_WITH", david)
# createRel(bob, "WORKS_WITH", david)
# createRel(bob, "WORKS_WITH", charles)
# 
# incomingRels(david)
# incomingRels(charles, "WORKS_WITH")
# ## End(Not run)

Run the code above in your browser using DataLab