neo.rel: neo.rel

Description Usage Arguments Value

Description

Helps to construct relationship statements for people not familiar with Cypher syntax

Usage

1
neo.rel(rel_var = "r", relationship = "", degrees = "1", directed = "--")

Arguments

rel_var

To assign a variable to the relationship. Defaults to "r".

relationship

The relationship label, eg. "Knows".

degrees

Degrees of separation defaults to 1. For a range use eg. "1..4" for nodes connected within 1 to 4 degrees of distance.

directed

Directed defaults to undirected, but can be changed to "r", "–>" or "right" for right-directed, eg. a –> b (or similar for left-directed).

Value

A string describing a relationship in Cypher


brendan-newlon/df2neo4j documentation built on Sept. 19, 2020, 5:44 a.m.