Skip to content

ParsedEdges

Defined in: network/parse.ts:8

Edge-list ingestion (sub-issue #99 / epic #98).

Maps arbitrary node labels to dense 0..n-1 indices in first-seen order, so downstream SoA/CSR buffers (see ./graph.js) stay compact.

optional ids?: Uint32Array<ArrayBufferLike>

Defined in: network/parse.ts:24

Dense index → the integer id Infomap keys the node by, so an app can match Infomap’s output to the nodes (#408). For Pajek, the vertex id. For an edge list, each label’s value, present only when every label is a plain integer id: 0, or digits without a leading zero, up to MAX_ID, which is how Infomap writes ids back. A name, or a label such as 01 or +1, leaves it out.


labels: string[]

Defined in: network/parse.ts:16

Dense index → original node label.


nodeCount: number

Defined in: network/parse.ts:9


source: Uint32Array

Defined in: network/parse.ts:11

Directed edge endpoints as dense node indices.


target: Uint32Array

Defined in: network/parse.ts:12


weight: Float32Array

Defined in: network/parse.ts:14

Per-edge weight; defaults to 1 when no third column is present.