The graph, as the arrays the field and the tests read.
universe/src/drainage.ts:179Members
areareadonly
Upstream area, in cells, the node's own included.
cellMetersreadonly
Mean cell size on the ground, meters.
cellsreadonly
Cells per face edge.
cellSegmentsreadonly
cellStartreadonly
nodes + 1 offsets into cellSegments.
elevationreadonly
The macro landform at the node, meters.
filledreadonly
The spill level: the landform or the water standing over it.
floorreadonly
The channel floor at the node, meters.
lakereadonly
The standing water over the node — a lake's spill level, or the sea's datum on a node the sea reaches — else NaN.
levelreadonly
The region level the lattice cells are addressed at: log2(cells).
neighborsreadonly
Eight neighbor indices per node, −1 where a cube corner has seven. The lattice's own table, shared by every body of this size; on the graph so the kernel packer and the lake lookup read one.
nodesreadonly
6 · cells².
orderreadonly
Strahler order, one at a headwater.
popOrderreadonly
The nodes in flood order, downstream first: a topological order.
positionsreadonly
Unit direction per node, jittered inside its cell, three per node.
reachreadonly
The valley half-width every segment carves over, radians.
receiverreadonly
The node each drains to, or −1 at a sink.
seareadonly
Whether the node is under the sea.