本文へ移動

@eightkk/vue-weave / core / graphExpansionView

Function: graphExpansionView() ​

graphExpansionView<N, E>(state, options?): GraphExpansionView<N, E>

Defined in: src/core/graphExpansion.ts:186

The component input of a state: the loaded nodes, the edges between them, the dangling edges and the frontier. With options.key, the frontier is that of the key: nodes expanded or pending entirely or for that key are left out. Throws Error for a key that is not a non-empty string.

Type Parameters ​

N ​

N extends object

E ​

E extends GraphEdge<unknown>

Parameters ​

state ​

GraphExpansionState<N, E>

options? ​

GraphExpansionKeyOptions

Returns ​

GraphExpansionView<N, E>

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