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

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

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

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

Properties

readonly
linkMap: VariantMap.NonEmpty<N, VariantSet<N>>

Returns the nested Map representation of the graph connections.

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.