import { VariantGraphBase } from "https://deno.land/x/rimbu@0.10.0/graph/custom/index.ts";
Interfaces
Utility interface that provides higher-kinded types for this collection. |
import { type VariantGraphBase } from "https://deno.land/x/rimbu@0.10.0/graph/custom/index.ts";
Methods
Returns true if there is at least one node in the collection, and instructs the compiler to treat the collection as a .NonEmpty type.
Returns a Stream
containing all graph elements of this collection as single tuples for isolated nodes
and 2-valued tuples of nodes for connections.
Returns the graph with all nodes in given nodes
stream removed, together with all their
connections.
disconnect<UN = N>(node1: RelatedTo<N, UN>, node2: RelatedTo<N, UN>): WithGraphValues<Tp, N, V>["normal"]
Returns the graph with the connection between given node1
and node2
removed if it exists.
disconnectAll<UN = N>(links: StreamSource<Link<RelatedTo<N, UN>>>): WithGraphValues<Tp, N, V>["normal"]
Returns the graph with all connections in given links
removed if they exist.