interface VariantGraph.NonEmpty
implements [VariantGraphBase.NonEmpty]<N, VariantGraph.Types>, Omit<VariantGraph<N>, keyof VariantGraphBase.NonEmpty<any, any>>, [Streamable.NonEmpty]<GraphElement<N>>
import { type VariantGraph } from "https://deno.land/x/rimbu@1.2.0/core/mod.ts";
const { NonEmpty } = VariantGraph;
A non-empty type-variant immutable graph. See the Graph documentation and the VariantGraph API documentation
Properties
readonly
linkMap: VariantMap.NonEmpty<N, VariantSet<N>>Returns the nested Map representation of the graph connections.
Methods
stream(): Stream.NonEmpty<[N] | Link<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.