interface VariantGraphBase.NonEmpty
implements VariantGraphBase<N, V, Tp>, [Streamable.NonEmpty]<[N] | WithGraphValues<Tp, N, V>["link"]>
import { type VariantGraphBase } from "https://deno.land/x/rimbu@0.13.5/graph/custom/common/interface/variant-graph-base.ts";
const { NonEmpty } = VariantGraphBase;
Methods
asNormal(): WithGraphValues<Tp, N, V>["normal"]
Returns this collection typed as a 'possibly empty' collection.
stream(): Stream.NonEmpty<[N] | WithGraphValues<Tp, N, V>["link"]>
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.
streamNodes(): Stream.NonEmpty<N>
Returns a non-empty Stream
containing all nodes of this collection.