Package: effect
Module: Graph
Immutable graph interface.
When to use
Use as the immutable graph model for code that queries, traverses, transforms, or analyzes graph structure without mutating it.
See
MutableGraph for the mutable counterpart used inside mutation scopesDirectedGraph for a Graph fixed to directed edgesUndirectedGraph for a Graph fixed to undirected edgesSignature
export interface Graph<out N, out E, T extends Kind = "directed"> extends Proto<N, E> {
readonly type: T
readonly mutable: false
}
Since v3.18.0