Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/rimbu/graph/custom/non-valued/implementation/empty.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>
import { GraphEmpty } from "https://deno.land/x/rimbu@1.0.0/graph/custom/non-valued/implementation/empty.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