Skip to main content

The Idea

When you have an edge, you can traverse to its connected endpoints. Use ::FromN or ::FromV to get the source node or vector, and ::ToN or ::ToV to get the destination node or vector.

::FromN   Source Node

Return the node that the edge originates from.

Example 1: Getting the user from a document creation edge


::FromV   Source Vector

Return the vector that the edge originates from.

Example 1: Getting the source document from a mentions edge


::ToN   Destination Node

Return the node that the edge points to.

Example 1: Getting the followed user from a follow edge


::ToV   Destination Vector

Return the vector that the edge points to.

Example 1: Inspecting the document vector

Combine edge traversals with property filtering or continue traversing from the destination. See the Property Access and Traversals From Nodes guides.