本文へ移動

@eightkk/vue-weave / core / TimeRangeTargetsOptions

Interface: TimeRangeTargetsOptions ​

Defined in: src/core/timeRangeTargets.ts:65

Extended by ​

Properties ​

graph? ​

optional graph?: object

Defined in: src/core/timeRangeTargets.ts:70

The graph to walk from the graph nodes of the active entities, for example the graph shown by NetworkGraph. Without it, or without traversal, nothing is related.

edges ​

edges: readonly GraphEdge<unknown>[]

nodes ​

nodes: readonly object[]


traversal? ​

optional traversal?: GraphTraversalOptions<GraphEdge<unknown>>

Defined in: src/core/timeRangeTargets.ts:77

How to find related entities, as for traverseGraph: { direction: 'forward' } for all successors, 'backward' for all predecessors, 'both' for both, and { direction: 'both', maxHops: 1 } for direct neighbours. maxHops limits the depth, edgeFilter the relations followed and maxNodes the number of graph nodes reached. Omit it to relate nothing.

MIT ライセンスで公開しています。