Skip to content

@graphty/graphty-element / format / INVALID_INDEX

Variable: INVALID_INDEX ​

const INVALID_INDEX: 4294967295 = 4294967295

Defined in: graph-format/dist/src/constants.d.ts:15

The one and only "no index" sentinel: 0xFFFFFFFF. Used for node, edge and arc indices alike, both as a JS return value (indexOf, findArc, edgeIndexOf, nodeColumn, edgeColumn, codeOf) and inside Uint32Array vectors (remaps, parents, labels). It never appears in rowPtr, colIdx, arcToEdge, edgeToArc or any view array (invariant I2), and because every count is bounded by MAX_COUNT it can never collide with a valid index (invariant I3).