Interface TraversalOptions

Options for graph traversal

interface TraversalOptions {
    maxDepth?: number;
    relationTypes?: RelationType[];
    direction?: "both" | "outgoing" | "incoming";
    minWeight?: number;
    maxNodes?: number;
}

Properties

maxDepth?: number

Maximum depth to traverse

relationTypes?: RelationType[]

Relation types to follow

direction?: "both" | "outgoing" | "incoming"

Direction of traversal

minWeight?: number

Minimum relation weight

maxNodes?: number

Maximum nodes to visit