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

x/rimbu/graph/custom/index.ts>EdgeGraphBase.NonEmpty

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

Type Parameters

N
optional
Tp extends EdgeGraphBase.Types = EdgeGraphBase.Types

Methods

stream(): Stream.NonEmpty<GraphElement<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.