Skip to content

@eightkk/vue-weave / core / findGraphCycles

Function: findGraphCycles() ​

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

Defined in: src/core/graphAlgorithms.ts:40

Strongly connected components that contain a cycle: every component with more than one node, plus each node with a self-loop. Members follow input order and components are ordered by their first member.

Parameters ​

nodes ​

readonly IdentifiedNode[]

edges ​

readonly GraphEdge<unknown>[]

Returns ​

string[][]

Released under the MIT License.