Skip to content

Defined in: packages/graph/src/graph.ts:72

Every edge of a graph as three parallel columns: edge i runs from sources[i] to targets[i] with weight weights[i].

weights is present exactly when the graph is weighted. The same record is accepted back as GraphOptions.edges, so converting between layouts never builds a tuple.

readonly sources: Int32Array

Defined in: packages/graph/src/graph.ts:73


readonly targets: Int32Array

Defined in: packages/graph/src/graph.ts:74


readonly weights: Float64Array<ArrayBufferLike> | undefined

Defined in: packages/graph/src/graph.ts:75