Skip to main content

Function: chordMatrixFromFlows()

chordMatrixFromFlows(flows, groupCount): number[][]

Defined in: src/mobjects/graphing/chordLayout.ts:80

Build a square, non-negative matrix from a link list.

Parameters​

flows​

ChordFlow[]

Directed flows between group indices.

groupCount​

number

Number of groups (matrix size).

Returns​

number[][]

A groupCount x groupCount matrix of non-negative flows.