Yog.FSharp
Getting Started Examples API Reference GitHub

LabeledBuilder<'Label, 'EdgeData> Type

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

Type Parameters

  • 'Label: The type used to identify nodes (must support comparison)
  • 'EdgeData: The type stored on edges

Fields

  • Graph: The underlying graph structure with internal IDs
  • LabelToId: Bidirectional mapping from labels to integer IDs
  • NextId: Next available internal node ID

Record fields

Record Field Description

Graph

Full Usage: Graph

Field type: Graph<'Label, 'EdgeData>

The underlying graph structure.

Field type: Graph<'Label, 'EdgeData>

LabelToId

Full Usage: LabelToId

Field type: Map<'Label, NodeId>

Mapping from label to internal node ID.

Field type: Map<'Label, NodeId>

NextId

Full Usage: NextId

Field type: NodeId

Next available node ID.

Field type: NodeId