Graph Traversal/Traversal Steps

Traversals from Edges

FromN

Get the node that the edge originates from.

::FromN

Example:

QUERY get_follower_from_relationship(relationshipID: ID) =>
    follower <- E<Follows>(relationshipID)::FromN
    RETURN follower

ToN

Get the node that the edge points to.

::ToN

Example:

QUERY get_following_from_relationship(relationshipID: ID) =>
    followed_user <- E<Follows>(relationshipID)::ToN
    RETURN followed_user

On this page