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

x/rimbu/graph/custom/index.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.0.0/graph/custom/index.ts";
const { NonEmpty } = ArrowGraphBase;

Type Parameters

N
optional
Tp extends ArrowGraphBase.Types = ArrowGraphBase.Types

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.