import { type GraphConnect } from "https://deno.land/x/rimbu@0.13.5/graph/custom/common/implementation/base.ts";
Methods
addNode(node: N): WithGraphValues<Tp, N, V>["nonEmpty"]
Returns the graph with the given node
added, if it was not yet present.
addNodes(nodes: StreamSource.NonEmpty<N>): WithGraphValues<Tp, N, V>["nonEmpty"]
Returns the graph with the nodes from the given nodes
StreamSource
added.
addNodes(nodes: StreamSource<N>): WithGraphValues<Tp, N, V>["normal"]
connectAll(connections: StreamSource.NonEmpty<WithGraphValues<Tp, N, V>["link"]>): WithGraphValues<Tp, N, V>["nonEmpty"]
Returns the graph with the connections from the given connections
StreamSource
added.
connectAll(connections: StreamSource<WithGraphValues<Tp, N, V>["link"]>): WithGraphValues<Tp, N, V>["normal"]