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

x/rimbu/graph/main/non-valued/interface/edge/edge-graph-hashed.ts>EdgeGraphHashed.NonEmpty

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

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