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

x/rimbu/core/menu/menu.ts>Graph.NonValued.Arrow.Hashed.NonEmpty

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

A non-empty type-invariant immutable valued arrow (directed) graph. The connections are internally maintained using hashed collections See the Graph documentation and the ArrowGraphHashed 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.