Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/rimbu/graph/main/non-valued/interface/arrow/arrow-graph-sorted.ts>ArrowGraphSorted.NonEmpty

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
interface ArrowGraphSorted.NonEmpty
implements [ArrowGraphBase.NonEmpty]<N, ArrowGraphSorted.Types>, Omit<ArrowGraphSorted<N>, keyof ArrowGraphBase.NonEmpty<any, any>>, [Streamable.NonEmpty]<GraphElement<N>>
import { type ArrowGraphSorted } from "https://deno.land/x/rimbu@0.13.5/graph/main/non-valued/interface/arrow/arrow-graph-sorted.ts";
const { NonEmpty } = ArrowGraphSorted;

A non-empty type-invariant immutable valued arrow (directed) graph. The connections are internally maintained using sorted collections See the Graph documentation and the ArrowGraphSorted API documentation

Methods

stream(): Stream.NonEmpty<GraphElement<N>>

Returns a non-empty Stream containing all entries of this collection as tuples of key and value.