Skip to main content
Module

x/rimbu/mod.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.14.0/mod.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.