本文へ移動

@eightkk/vue-weave / core / graphComponents

Function: graphComponents() ​

graphComponents(nodes, edges): string[][]

Defined in: src/core/graphAnalysis.ts:35

Weakly connected components (edge direction ignored). Each component lists its node IDs in input order and components are ordered by their first node's input position. Isolated nodes are single-node components.

Parameters ​

nodes ​

readonly IdentifiedNode[]

edges ​

readonly GraphEdge<unknown>[]

Returns ​

string[][]

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