Class: Edge

Edge(srcNode, relation, destNode, properties)

An edge connecting two nodes.

Constructor

new Edge(srcNode, relation, destNode, properties)

Builds an Edge object.
Parameters:
Name Type Description
srcNode Node Source node of the edge.
relation string Relationship type of the edge.
destNode Node Destination node of the edge.
properties Map Properties map of the edge.
Source:

Methods

setId(id)

Sets the edge ID.
Parameters:
Name Type Description
id number (integer)
Source:

toString()

Source:
Returns:
The string representation of the edge.