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

x/rimbu/graph/custom/non-valued/interface/arrow-graph-base.ts>ArrowGraphBase.NonEmpty

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
interface ArrowGraphBase.NonEmpty
implements [GraphBase.NonEmpty]<N, Tp>, Omit<ArrowGraphBase<N, Tp>, keyof GraphBase.NonEmpty<any, any>>, [Streamable.NonEmpty]<GraphElement<N>>
import { type ArrowGraphBase } from "https://deno.land/x/rimbu@1.2.0/graph/custom/non-valued/interface/arrow-graph-base.ts";
const { NonEmpty } = ArrowGraphBase;

Properties

readonly
isDirected: true

Returns true since this is an arrow (directed) graph instance.

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.