Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

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

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

Properties

readonly
linkMap: WithGraphValues<Tp, N, unknown>["linkMapNonEmpty"]

Returns the nested non-empty Map representation of the graph connections.

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.