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

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

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

A non-empty type-invariant immutable graph. See the Graph documentation and the Graph API documentation

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.