English
@eightkk/vue-weave / core / GraphTraversalOptions
Interface: GraphTraversalOptions<E>
Defined in: src/core/graphTraversal.ts:11
Type Parameters
E
E extends GraphEdge = GraphEdge
Properties
direction?
optionaldirection?:GraphTraversalDirection
Defined in: src/core/graphTraversal.ts:13
forward follows edges from source to target, backward the reverse. Default: both.
edgeFilter?
optionaledgeFilter?: (edge,direction) =>boolean
Defined in: src/core/graphTraversal.ts:21
Follows only the edges for which this returns true, for example edges of one relation. Called with the edge and the direction of the walk that meets it, at most once per edge and walk, also for edges of nodes at the hop limit (to find truncated nodes). Default: every edge.
Parameters
edge
E
direction
Returns
boolean
maxHops?
optionalmaxHops?:number
Defined in: src/core/graphTraversal.ts:15
Largest number of edges between a start node and a reached node. A nonnegative integer or Infinity. Default: Infinity.
maxNodes?
optionalmaxNodes?:number
Defined in: src/core/graphTraversal.ts:28
Largest number of nodes in nodeIds, starts included: a positive integer or Infinity. The known starts are always included, even when there are more of them than maxNodes. A node counts once, however many walks reach it. Nodes are admitted nearest first: with both, the two walks advance one hop at a time together, the backward walk first at each hop. Default: Infinity.
paths?
optionalpaths?:boolean
Defined in: src/core/graphTraversal.ts:30
Records via and multiplyReachedIds, so a path to each reached node can be rebuilt with graphTracePath.