Yog.FSharp
Getting Started Examples API Reference GitHub

Yog.Builder Namespace

Type/Module Description

Grid

A builder for creating graphs from 2D grids.

This module provides convenient ways to convert 2D grids (like heightmaps, mazes, or game boards) into graphs for pathfinding and traversal algorithms.

Grid<'CellData, 'EdgeData>

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

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

Labeled

Labeled graph builder for constructing graphs with custom node labels.

Provides a type-safe way to build graphs using arbitrary labels (strings, custom types, etc.) instead of integer node IDs. The builder maintains an internal mapping from labels to IDs.

LabeledBuilder<'Label, 'EdgeData>

A persistent builder for graphs that use arbitrary labels instead of integer node IDs.

Live

Live graph builder for incremental graph construction.

The Live builder queues changes (additions and removals) that can be applied to a graph in batches via sync. This is useful for: - Building graphs incrementally from streaming data - Delaying expensive graph operations until necessary - Tracking pending changes before commit

LiveBuilder<'n, 'e>

A Live Builder for incremental graph construction.

Tracks label-to-ID mappings and pending transitions. Changes are applied via sync to a target graph.

Transition<'n, 'e>

Represents a pending transition to be applied during sync.