Yog.FSharp
Getting Started Examples API Reference GitHub

Grid<'CellData, 'EdgeData> Type

A grid builder that wraps a graph and maintains grid dimensions.

The grid uses row-major ordering: node_id = row × cols + col

Type Parameters

  • 'CellData: The data stored in each grid cell (becomes node data)
  • 'EdgeData: The data stored on edges (typically int for weights)

Record fields

Record Field Description

Cols

Full Usage: Cols

Field type: int

Number of columns in the grid

Field type: int

Graph

Full Usage: Graph

Field type: Graph<'CellData, 'EdgeData>

The underlying graph structure

Field type: Graph<'CellData, 'EdgeData>

Rows

Full Usage: Rows

Field type: int

Number of rows in the grid

Field type: int