import { type GraphBase } from "https://deno.land/x/rimbu@1.1.0/graph/custom/common/interface/graph-base.ts";
const { Builder } = GraphBase;
Type Parameters
Properties
Returns the context
associated to this collection instance.
Methods
Adds the given element
graph element to the builder, where a graph element
is either a one-element tuple containing a node, or a two-element tuple containing
two nodes indicating a connection.
Adds the graph elements in the given elements
StreamSource to the graph.
Removes the given nodes
, and any of their connections, from the graph.
Adds the connections in given connections
StreamSource
to the graph.
Removes all connections from the given connections
StreamSource
from the graph.
Performs given function f
for each entry of the collection, using given state
as initial traversal state.
Returns an immutable Graph containing the links in this Builder instance.