Skip to main content
Deno 2 is finally here 🎉️
Learn more
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>
extends GraphEmptyBase
Re-export
import { GraphEmpty } from "https://deno.land/x/rimbu@1.0.0/graph/custom/index.ts";

Constructors

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

Type Parameters

N
V
Tp extends GraphTypesContextImpl
optional
TpG extends WithGraphValues<Tp, N, V> = WithGraphValues<Tp, N, V>

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