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

x/rimbu/graph/main/non-valued/interface/edge/edge-graph-sorted.ts>EdgeGraphSorted.NonEmpty

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

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