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

x/rimbu/graph/main/index.ts>ArrowGraph.NonEmpty

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

A non-empty type-invariant immutable arrow (directed) graph. See the Graph documentation and the ArrowGraph API documentation

Methods

stream(): Stream.NonEmpty<[N] | Link<N>>

Returns a non-empty Stream containing all graph elements of this collection as single tuples for isolated nodes and 2-valued tuples of nodes for connections.