Skip to content

ParsedPajek

Defined in: network/pajek.ts:12

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.

directed: boolean

Defined in: network/pajek.ts:14

True when the file declared *Arcs / *Arcslist (directed edges).


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.

ParsedEdges.ids


labels: string[]

Defined in: network/parse.ts:16

Dense index → original node label.

ParsedEdges.labels


nodeCount: number

Defined in: network/parse.ts:9

ParsedEdges.nodeCount


optional positions?: Float32Array<ArrayBufferLike>

Defined in: network/pajek.ts:16

Interleaved [x, y, …] layout coordinates from *Vertices, present only if any were given.


source: Uint32Array

Defined in: network/parse.ts:11

Directed edge endpoints as dense node indices.

ParsedEdges.source


target: Uint32Array

Defined in: network/parse.ts:12

ParsedEdges.target


weight: Float32Array

Defined in: network/parse.ts:14

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

ParsedEdges.weight