Skip to main content
Module

x/rimbu/mod.ts>EdgeGraph.NonEmpty

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

A non-empty type-invariant immutable edge (undirected) graph.

Methods

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. See the Graph documentation and the EdgeGraph API documentation