Skip to main content
Module

x/rimbu/graph/custom/index.ts>GraphEmpty

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
class GraphEmpty
implements GraphBase<N, Tp>
Re-export
import { GraphEmpty } from "https://deno.land/x/rimbu@0.14.0/graph/custom/index.ts";

Constructors

new
GraphEmpty(isDirected: boolean, context: TpG["context"])

Properties

readonly
linkMap: TpG["linkMap"]

Methods

addNode(node: N): TpG["nonEmpty"]
addNodes(nodes: StreamSource<N>): WithGraphValues<Tp, N, V>["nonEmpty"]
connect(node1: N, node2: N): TpG["nonEmpty"]
connectAll(links: StreamSource<WithGraphValues<Tp, N, V>["link"]>): WithGraphValues<Tp, N, V>["nonEmpty"]
getConnectionsFrom(): TpG["linkConnections"]
toBuilder(): TpG["builder"]
toJSON(): ToJSON<any[]>
toString(): string