outgoingRels: Retrieve Relationships from Nodes

Description Usage Arguments Value See Also Examples

Description

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

Usage

1

Arguments

node

A node object.

...

A character vector.

Value

A list of relationship objects.

See Also

incomingRels

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
## 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)

outgoingRels(david)
outgoingRels(alice, "WORKS_WITH")

## End(Not run)

nicolewhite/RNeo4j documentation built on May 23, 2019, 5:09 p.m.