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. |
Methods
setId(id)
Sets the edge ID.
Parameters:
Name | Type | Description |
---|---|---|
id |
number | (integer) |
toString()
Returns:
The string representation of the edge.