本文へ移動

@eightkk/vue-weave / core / graphConnectionViolations

Function: graphConnectionViolations() ​

graphConnectionViolations(nodes, edges, rules): GraphConnectionViolation[]

Defined in: src/core/graphPortRules.ts:316

Audits existing edges against the rules and returns every broken rule in edge order: direction and type checks per edge, and for a limit the edges past it, counting edge ends in input order (the first maxConnections ends are kept). An edge can appear more than once. Throws like createGraphConnectionChecker.

Parameters ​

nodes ​

readonly IdentifiedNode[]

edges ​

readonly GraphEdge<unknown>[]

rules ​

GraphPortRules

Returns ​

GraphConnectionViolation[]

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