import { type GraphBase } from "https://deno.land/x/rimbu@1.0.3/graph/custom/common/interface/graph-base.ts";
const { Builder } = GraphBase;
Type Parameters
Properties
Returns the context
associated to this collection instance.
Methods
Returns true if the graph has a connection between given nodes node1
and node2
.
Adds the given node
to the graph.
Adds the given nodes
to the builder.
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 node
, and any of its connections, from the graph.
Removes the given nodes
, and any of their connections, from the graph.
Adds the connections in given connections
StreamSource
to the graph.
Adds a connection between given node1
and node2
nodes only if both
nodes exist in the graph.
Removes the connection between given node1
and node2
if the connection was present.
Removes all connections from the given connections
StreamSource
from the graph.
Returns an immutable Graph containing the links in this Builder instance.