Skip to main content

Module csr

Module csr 

Source
Expand description

Compressed sparse row adjacency.

One Csr holds the out-edges of one edge kind in one direction: an offsets array of node_count + 1 entries and a targets array, so the neighbours of ordinal n are targets[offsets[n]..offsets[n + 1]]. Targets are sorted and deduplicated within each row.

Structs§

Csr
Compressed sparse row adjacency for one edge kind and direction.

Enums§

CsrError
A failure while building adjacency.